Last active
January 1, 2025 15:03
-
-
Save slavikdev/5a203f9d233e107ee1ef4080a84fb42d to your computer and use it in GitHub Desktop.
Revisions
-
slavikdev revised this gist
Jan 1, 2025 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## Full path with query string ``` >> request.url => "http://localhost:3000/ask-help.amp?ptn=pnh" ``` ## Virtual path without query string ``` @@ -12,5 +12,5 @@ ## Virtual path with query string ``` >> request.fullpath => "/ask-help.amp?ptn=pnh" ``` -
Slavik Shynkarenko created this gist
Mar 16, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ # Rails request path cheatsheet ## Full path with query string ``` >> request.url => "http://localhost:3000/ask-help.amp?hui=pizda" ``` ## Virtual path without query string ``` >> request.path => "/ask-help.amp" ``` ## Virtual path with query string ``` >> request.fullpath => "/ask-help.amp?hui=pizda" ```