current route rails code example
Example: rails get current path
request.url
# => "http://localhost:3000/lists/7/items"
request.path
# => "/lists/7/items"
request.url
# => "http://localhost:3000/lists/7/items"
request.path
# => "/lists/7/items"