When we define routes in routes.rb
using the name like map.some_link
.We can use the link in two ways- some_link_url
, some_link_p
_url will give the entire path. As it contains the domain name and protocol, you can use it for eg. to send email or redirecting to another domain, etc.
_path will return the path which is after '/' without domain,protocol etc. So you can use it every now and then(I guess), where you don't require details of domain.