Hi gang!
I want / to point to app/subject/list instead of public/index.html. I
added this to routes.rb
map.connect ‘:controller/:action/:id’, :controller => ‘subject’, :action
=> ‘list’
But that does not work…
Hi gang!
I want / to point to app/subject/list instead of public/index.html. I
added this to routes.rb
map.connect ‘:controller/:action/:id’, :controller => ‘subject’, :action
=> ‘list’
But that does not work…
First, rename the index.html file to something else.
Then:
map.root :controller => ‘subject’, :action => ‘list’
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)
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