fusemedia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-18 22:43 UTC
Generate links with dashes in :id
Hello All, First, I''m a noob to rails and am working on my first site. I''ve been playing with the routes and successfully setup custom ones. But how do I have the routes replace the "+" with a "-" in :id, when rails generates the link_to. I''ve search quite a bit and can''t seem to find the answer (Although I''m probably not using the right keywords, lol). Thanks in advance, Nick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
fusemedia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> First, I''m a noob to rails and am working on my first site. I''ve been > playing with the routes and successfully setup custom ones. But how do > I have the routes replace the "+" with a "-" in :id, when rails > generates the link_to. I''ve search quite a bit and can''t seem to find > the answer (Although I''m probably not using the right keywords, lol).Why would you have a "+" in your :id which is normally an integer? Show us some examples of what you are getting now and what you would like them to be. -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---