- At the command prompt, create a new Rails application: rails new myapp (where myapp is the application name)
|-- app |Ruby on Rails Tutorial: Learn Rails by Example |-- assets *| |-- images | |-- javascripts
-
| |-- controllers
| |-- helpers
| |-- mailers
| |-- models
|
-- views |
-- layouts |-- config | |-- environments | |-- initializers |-- locales |-- db |-- doc |-- lib |
-- tasks |-- log |-- public |-- script |-- test | |-- fixtures | |-- functional | |-- integration | |-- performance |-- unit |-- tmp | |-- cache | |-- pids | |-- sessions |
-- sockets-- vendor |-- assets
-- stylesheets `-- plugins
app Holds all the code that's specific to this particular application.
app/assets Contains subdirectories for images, stylesheets, and JavaScript files.
app/controllers Holds controllers that should be named like weblogs_controller.rb for automated URL mapping. All controllers should descend from ApplicationController which itself descends from ActionController::Base.