Hi, got a problem with the map.connect '''' in my website (I don''t know much of routes as I never really checked it). Ok so I just want to redirect automaticaly the users to my index page when they get to the site. So the idea is that using the address "http://localhost:3000" using a route the user get to "http:// localhost:3000/dentistManager". In my routes.rb I added: map.connect '''', :controller => ''dentistmanager'', :action => "index" So it looks like that: ActionController::Routing::Routes.draw do |map| map.resources :consultations map.resources :patients map.resources :doctors map.resources :appointments map.connect '''', :controller => ''dentistmanager'', :action => "index" map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' end What am I doing wrong? --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
> -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of CiriusMex > Sent: Thursday, April 09, 2009 11:36 AM > To: Ruby on Rails: Talk > Subject: [Rails] map.connect '''' doesn''t work > > > Hi, got a problem with the map.connect '''' in my website (I don''t know > much of routes as I never really checked it). > Ok so I just want to redirect automaticaly the users to my index page > when they get to the site. So the idea is that using the address > "http://localhost:3000" using a route the user get to "http:// > localhost:3000/dentistManager". > > In my routes.rb I added: > map.connect '''', :controller => ''dentistmanager'', :action => "index"Change to: map.root :controller => ''dentistmanager'', :action => "index" Brandon --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hmmm, doesn''t work neither :(> > Change to: > > map.root :controller => ''dentistmanager'', :action => "index" > > Brandon- Ocultar texto de la cita - > > - Mostrar texto de la cita ---~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
what errors are you seeing? did you delete the index.html file in the public folder? On Apr 9, 12:38 pm, CiriusMex <cirius...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hmmm, doesn''t work neither :( > > > > > Change to: > > > map.root :controller => ''dentistmanager'', :action => "index" > > > Brandon- Ocultar texto de la cita - > > > - Mostrar texto de la cita ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Great, I deleted the index.html in the public folder and did the trick! Didn''t knew that one, thanks a lot to the both of you for the help ^^ On 9 abr, 11:45, scott <scot...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> what errors are you seeing? did you delete the index.html file in the > public folder? > > On Apr 9, 12:38 pm, CiriusMex <cirius...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hmmm, doesn''t work neither :( > > > > Change to: > > > > map.root :controller => ''dentistmanager'', :action => "index" > > > > Brandon- Ocultar texto de la cita - > > > > - Mostrar texto de la cita -- Ocultar texto de la cita - > > - Mostrar texto de la cita ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---