Hello All,
what s the difference when using routes with url and path, like
forum_path(something) or forum_url(something)
Joel
Hello All,
what s the difference when using routes with url and path, like
forum_path(something) or forum_url(something)
Joel
On Thu, Aug 7, 2008 at 7:41 PM, joel [email protected] wrote:
what s the difference when using routes with url and path, like
forum_path(something) or forum_url(something)
The difference is that url will give you a complete url including
the hostname:
items_url expands to http://localhost:3000/items
and path:
items_path expands to ‘/items’
Franz
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