O'Reilly logo

Ajax Hacks by Bruce W. Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Work with Ajax and Ruby on Rails

Hacks 5562

If you haven’t yet worked with Ruby on Rails ( RoR), you’re in for a great treat. Ruby on Rails is a web development framework that makes it very easy to create database-driven web applications. (A framework is a software structure that provides developers with scripts, packages, and objects with which they can build their own applications.) Ruby on Rails uses the programming language Ruby, including an embedded version of Ruby for HTML or XML templates that is similar to JavaServer Pages (JSP) or PHP. Rails is the name of the framework (or set of packages, such as the ActionController class) that programmers use to develop web applications with this toolkit.

Tip

The first edition of a Ruby programming book can be found here: http://www.ruby-doc.org/docs/ProgrammingRuby/. You can find another Ruby tutorial at http://www.math.umd.edu/~dcarrera/ruby/0.3/.

Ruby on Rails can run on the Apache web server and another open source server called lighttpd; it also has a handy built-in web server, WEBrick, which we will use in this chapter. Ruby on Rails only found its way into the general development community in the summer of 2004. However, its ease of use, elegant design, and numerous built-in features—such as Ajax and virtually automated object-relational mapping (ORM) with many popular databases—have impressed the software developer crowd. Prototyping a functional database-driven web application using RoR is faster and more efficient ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required