Have you ever wondered what is difference between
_url in Ruby on Rails?
root_url. As it turns out,
_path only returns the url relative to your domain.
You should always use
_url for redirects and
_path for hyperlinks unless you have a good reason not to do so.
So far so good, That’s it! See ya! :)