D) Let the server know about your Rails application. Open up the file located at myapp/public/.htaccess. You can access this over FTP or using the nano or vi commands over SSH. This file shouldn't already exist in the system. If it does, you can empty it's contents. Put this as the entire contents of the file:RailsBaseURI /myapp

E) From here you will create your needed models, controllers, and views for your application. Models are the objects, which will usually be linked to a table in your database. A model can be created used the following command:

cd ../myapp
rails generate model User

(Note the name of the model is capitalized and singular.)

F-1) A controller is what moves data between the model (database) and your view. A controller can be created using the following code.

rails generate controller User

(Again, note the capitalization and singularity.)

F-2) The view is where you will control what the user sees. The view can either be created manually or with help of the generator.

rails generate controller User list

The above code would create the controller for the User object and it will also create the needed code for the list view. If you would like to manually create this. All you do is edit the User controller file which is found at app/controllers/user_controller.rb. In this file, enter the following code within the class. (After class and before end)

You can also predefine the list action. This will create the necessary view as well

script/generate controller user list

7. Now set the user controller and list action as your default action. First remove public/index.html

Uncomment the map.root line in routes.rb

vim config/routes.rb
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
map.root :controller => "user", :action => "list
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'