Ruby on Rails

From Wikipedia, the free encyclopedia

Ruby on Rails

The Rails Default Page
Developer: Rails Core Team
Latest release: 1.2.3 / March 14, 2007
OS: Cross-platform
Use: Web application framework
License: MIT License
Website: rubyonrails.com

Ruby on Rails is a web application framework released in 2004 that aims to increase the speed and ease of web development. Often shortened to Rails, or RoR, it is an open source project written in the Ruby language.

Contents

The fundamental Ruby on Rails principles include Don't repeat yourself (DRY) and Convention over Configuration.

"Don't repeat yourself" means that information is located in a single, unambiguous place. For example, thanks to ActiveRecord, the classes' definitions don't need to specify column names; Ruby can retrieve this information from the database, so defining it in code would be redundant.

"Convention over Configuration" means a developer only needs to specify unconventional aspects of their 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 someone deviates from this convention, such as calling the table "products_sold", that they need to write code regarding these names.

Ruby on Rails was extracted by David Heinemeier Hansson from his work on Basecamp, a project-management tool by the web-design company 37signals.[1] It was first released to the public in July 2004.

In August 2006, it was announced that Apple will ship Ruby on Rails with Mac OS X v10.5 "Leopard," scheduled for release in Spring 2007.[2]

Ruby on Rails has experienced a surge in popularity since its introduction.[3]

Computerworld magazine chose it as their top pick for "The Top Five Technologies You Need to Know About in '07".[4]

Hansson attributes this to the productivity advantages of such "opinionated software".[5] If they code along the Rails conventions—largely derived from Hansson's opinion on how software should work—developers can accomplish their goals with less code. For example, less effort is spent on specifying where data (files, class names, database tables) are located, since Rails knows what to look for.

Like many contemporary web frameworks, Rails uses the Model-View-Controller (MVC) architecture for organizing applications.

Rails provides out-of-the-box scaffolding, which can quickly construct most of the logic and views needed for a basic website, the WEBrick web server and other helpful development tools.

Rails is also noteworthy for its extensive use of the Javascript libraries Prototype and Script.aculo.us, for Ajax and visual effects.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.