aktxyz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-04 19:33 UTC
link_to and custom route
I have these custom route map.connect ''hot'', :controller => ''welcome'', :action => ''hot'' map.connect ''new'', :controller => ''welcome'', :action => ''new'' and I use this format for link_to link_to ''hot'', :controller => ''hot'' link_to ''hot'', :controller => ''new'' Is that right ? it works, but saying that hot is a controller just does not feel very railsy to me and makes me sad. any better ideas ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You can do link_to ''Hot'', :controller => ''welcome'', :action => ''hot'' or if you''re already in the welcome controller, just link_to ''Hot'', :action => ''hot'' aktxyz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> I have these custom route > > map.connect ''hot'', :controller => ''welcome'', :action => ''hot'' > map.connect ''new'', :controller => ''welcome'', :action => ''new'' > > and I use this format for link_to > > link_to ''hot'', :controller => ''hot'' > link_to ''hot'', :controller => ''new'' > > Is that right ? it works, but saying that hot is a controller just does > not feel very railsy to me and makes me sad. > > any better ideas ? > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---