Set route for rails

How we can set routing
for a controller book having function index
I mean when i start the server
it first run the index funxtion of a controller book
like

http://localhost:3000/

Thanks
Mohit

in configuration/routes.rb:
map.root :controller => ‘book’

Delete index.html in the public folder

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs