You indicated in a previous message that you had worked right through
railstutorial.org. Perhaps you missed the sections where it used
routes.rb to setup routes to control which action is called for each
request. Have a look at the rails guide on routing to see the various
options for how to do this. Also look at the other guides, they
contain a lot of useful information.
As a matter of interest, why have you posted this request for help
twice? One is quite sufficient and it is best to use plain text mode
(as you have done here).