Hello,
Is there a way to set the default homepage? Right now it goes to
public/index.html, but i want to to go my standard controller
(/user/index).
Do I set this in my routes.rb file?
Hello,
Is there a way to set the default homepage? Right now it goes to
public/index.html, but i want to to go my standard controller
(/user/index).
Do I set this in my routes.rb file?
yes
On 10/9/06, Stever [email protected] wrote:
Is there a way to set the default homepage? Right now it goes to
public/index.html, but i want to to go my standard controller
(/user/index).Do I set this in my routes.rb file?
Remove public/index.html and set a default route in config/routes.rb
jeremy
I am putting this for the benefit of anyone reading this post. My
solution to the problem was to add this line at the bottom of my
routes.rb file:
map.connect ‘’, :controller => “user”
This translates to: convert any domain without a specific directory to
the default action on controller “user”.
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