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!
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!
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs