Rails Get Current Path

[Solved] Rails Get Current Path | Ruby - Code Explorer | yomemimo.com
Question : rails get current path

Answered by : lonely-curly-boi

request.url
# => "http://localhost:3000/lists/7/items"
request.path
# => "/lists/7/items"

Source : https://stackoverflow.com/questions/1203892/how-can-i-find-out-the-current-route-in-rails | Last Update : Tue, 21 Apr 20

Answers related to rails get current path

Code Explorer Popular Question For Ruby