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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
yes On 10/9/06, Stever <steve-HiVQJmIVH4ivvaMlHRW6lQ@public.gmane.org> wrote:> > 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? > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/9/06, Stever <steve-HiVQJmIVH4ivvaMlHRW6lQ@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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". --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---