dparkmit
2007-Aug-14 10:40 UTC
what is the difference between new_article_path vs. new_article_url?
hi all, i''ve recently begun using RESTful routing techniques in my RoR app. as i''m using it, though, i find that i use the _path and the _url methods interchangebly. what''s the difference between these types of methods? thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2007-Aug-14 10:46 UTC
Re: what is the difference between new_article_path vs. new_article_url?
On 14 Aug 2007, at 12:40, dparkmit wrote:> i''ve recently begun using RESTful routing techniques in my RoR app. > as i''m using it, though, i find that i use the _path and the _url > methods interchangebly. what''s the difference between these types of > methods? thanks!_path will use the relative path notation, while _url will give you the full url. I believe it''s best practise to only use _url for redirects. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---