Answers for "rails how to see path of current page"

2

rails get current path

request.url
# => "http://localhost:3000/lists/7/items"
request.path
# => "/lists/7/items"
Posted by: Guest on April-14-2020

Code answers related to "rails how to see path of current page"

Browse Popular Code Answers by Language