Set route for rails

0 views
Skip to first unread message

mohit

unread,
Feb 17, 2010, 3:49:59 AM2/17/10
to Ruby on Rails: Talk
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

Sharagoz --

unread,
Feb 17, 2010, 4:03:21 AM2/17/10
to rubyonra...@googlegroups.com
in configuration/routes.rb:
map.root :controller => 'book'

Delete index.html in the public folder
--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages