BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 44 definitions for Ruby.  Also try: Rake or Rail or ROR.

Ruby on Rails

Print-Friendly
About 4 pages (1,303 words)

Bookmark and Share Questions on this topic? Just ask!
Ruby on Rails

The Rails Default Page
Developer Rails Core Team
Latest release 2.0.2 / December 17, 2007
OS Cross-platform
Genre Web application framework
License MIT License
Website rubyonrails.org

Ruby on Rails is a free web application framework. It aims to increase the speed and ease with which database-driven web sites can be created, and offers skeleton code frameworks (scaffolding) from the outset. Often shortened to Rails, or RoR, Ruby on Rails is an open source project written in the Ruby programming language, and applications using the Rails framework are developed using the Model-View-Controller design paradigm.

Contents

Philosophy

The fundamental Ruby on Rails principles include Convention over Configuration (CoC) and Don't repeat yourself (DRY). "Convention over Configuration" means a developer only needs to specify unconventional aspects of the application. For example, if there's a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table "products_sold", that one needs to write code regarding these names. "Don't repeat yourself" means that information is located in a single, unambiguous place. For example, using ActiveRecord, the developer does not need to specify database column names in class definitions. Instead, Ruby can retrieve this information from the database.

History

David Heinemeier Hansson, the creator of Ruby on Rails
David Heinemeier Hansson, the creator of Ruby on Rails

Ruby on Rails was extracted by David Heinemeier Hansson from his work on Basecamp, a project-management tool by the web design (now web application) company 37signals.[1] It was first released to the public in July 2004. In August 2006 it was announced that Apple would ship Ruby on Rails with Mac OS X v10.5 Leopard,[2] which was released in October 2007.

Significance

Ruby on Rails led the charge among next-generation web application frameworks, popularizing features that are now considered standard, such as scaffolding, object-relational mapping and simple installation. Other projects such as Catalyst, Django and TurboGears followed suit.

Technical overview

Like many contemporary web frameworks, Rails uses the Model-View-Controller (MVC) architecture for organizing application programming. Rails provides 'out of the box' scaffolding which can quickly construct most of the models and views needed for a basic website. Other helpful development tools come with or are installed with Rails, such as the WEBrick web server, and the Rake build system. Rails is also noteworthy for its extensive use of the JavaScript libraries Prototype and Script.aculo.us for Ajax and its graphical interface. For web services Rails initially supported lightweight SOAP; later it was replaced by RESTful web services. The recommended REST based programming structure changed drastically in version 1.2.

Framework structure

Ruby on Rails divides itself into various packages, namely Active Record, Active Resource, Action Pack, Active Support and Action Mailer. (Prior to version 2.0, Rails also included the Action Web Service package.) Apart from standard packages, developers can make plugins to extend existing packages.

Trademarks

In March 2007 David Heinemeier Hansson filed three Rails related trademark applications to the USPTO. These applications regard the phrase "RUBY ON RAILS",[3] the word "RAILS"[4] and the official Rails logo.[5] As a consequence, in the summer of 2007 Hansson denied to Apress the permission to use the Rails logo on the cover of a new Rails book written by some authoritative community members. The episode gave rise to a polite protest in the Rails community.[6][7] In response to this criticism, Hansson made the following claims:[8]

I only grant promotional use [of the Rails logo] for products I'm directly involved with. Such as books that I've been part of the development process for or conferences where I have a say in the execution. I would most definitely seek to enforce all the trademarks of Rails.

Projects using Rails

See also

Free software Portal

References

  1. ^ Grimmer, Lenz (2006-02). Interview with David Heinemeier Hansson from Ruby on Rails. MySQL AB. Retrieved on 2007-07-13.
  2. ^ David, Hansson (2006-08-07). Ruby on Rails will ship with OS X 10.5 (Leopard). Retrieved on 2007-07-13.
  3. ^ "Ruby on Rails" Trademark Status. USPTO. Retrieved on 2007-08-01.
  4. ^ "Rails" Trademark Status. USPTO. Retrieved on 2007-08-01.
  5. ^ Rails Logo Trademark Status. USPTO. Retrieved on 2007-08-01.
  6. ^ Forde, Pete (2007-07-23). Beginning Rails: From Novice to Professional. Retrieved on 2007-08-01.
  7. ^ Cooper, Peter (2007-07-24). David Heinemeier Hansson says No to Use of Rails Logo. Retrieved on 2007-08-01.
  8. ^ Forde, Pete (2007-07-23). Beginning Rails: From Novice to Professional. Retrieved on 2007-08-01.

External links

Wikibooks
Wikibooks has a book on the topic of
Ruby on Rails

View More Summaries on Ruby on Rails
 
Ask any question on Ruby on Rails and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Ruby on Rails from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy