What is the difference between <route>_path
and <route>_url
in the Ruby on Rails?
For example, we use route_path
and route_url
in the route.rb
file of the rails.
What is the difference between <route>_path
and <route>_url
in the Ruby on Rails?
For example, we use route_path
and route_url
in the route.rb
file of the rails.
*_path
returns just a path part of the url, e.g. /documents/1
, *_url
gives you full URL with protocol and host https://myapp.com/documents/1