Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails get current path

request.url
# => "http://localhost:3000/lists/7/items"
request.path
# => "/lists/7/items"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #current #path
ADD COMMENT
Topic
Name
5+3 =