Friday, March 16, 2012

An Introduction to Ruby on Rails

Since its debut in 2004, Ruby on Rails has rapidly become one of the most powerful and
popular frameworks for building dynamic web applications.

What makes Rails so great? First of all, Ruby on Rails is 100 percent open-source,
available under the permissive MIT License, and as a result it also costs nothing to
download and use. Rails also owes much of its success to its elegant and compact design;
by exploiting the malleability of the underlying Ruby language, Rails effectively creates
a domain-specific language for writing web applications.

The Folder Structure of an ROR  Application is shown below ..

app/
Core application (app) code, including models, views, controllers, and helpers
onfig/
Application configuration
db/
Files to manipulate the database
doc/
Documentation for the application
lib/
Library modules
log/
Application log files
public/
Data accessible to the public (e.g., web browsers), such as images and
cascading style sheets (CSS)
script/rails
A script provided by Rails for generating code, opening console sessions,or starting a local web server
test/
Application tests (made obsolete by the spec/ directory in Section3.1.2)
tmp/
Temporary files
vendor/
Third-party code such as plugins and gems
README
A brief description of the application
Rakefile
Utility tasks available via the rake command
Gemfile
Gem requirements for this app
config.ru
A configuration file for Rack middleware
.gitignore Patterns for files that should be ignored by Git

No comments:

Post a Comment