- Notifications
You must be signed in to change notification settings - Fork0
fernandouval/first_app
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- At the command prompt, create a new Rails application:rails new myapp (wheremyapp 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
appHolds all the code that's specific to this particular application.
app/assetsContains subdirectories for images, stylesheets, and JavaScript files.
app/controllersHolds controllers that should be named like weblogs_controller.rb forautomated URL mapping. All controllers should descend fromApplicationController which itself descends from ActionController::Base.