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
Thanks
Mohit
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
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs