Rails provides named routes.
Routes helper can be called using path or url
eg from docs:
# and provide these named routes root_url # =>
_path provides relative path.
_url provides absolute path.
Whenever you send a URL in email etc. than it is a best practice to use _url instead of _path.