The _url
helper generates a string containing the entire URL, while the _path
helper generates a string containing the relative path from the root of the application, e.g.:
photos_url # => "http://www.example.com/photos"
photos_path # => "/photos"
As per Rails Guides - Routing.