Skip to content

Instantly share code, notes, and snippets.

@slavikdev
Last active January 1, 2025 15:03
Show Gist options
  • Save slavikdev/5a203f9d233e107ee1ef4080a84fb42d to your computer and use it in GitHub Desktop.
Save slavikdev/5a203f9d233e107ee1ef4080a84fb42d to your computer and use it in GitHub Desktop.

Revisions

  1. slavikdev revised this gist Jan 1, 2025. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions cheatsheet.md
    Original 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?hui=pizda"
    => "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?hui=pizda"
    => "/ask-help.amp?ptn=pnh"
    ```
  2. Slavik Shynkarenko created this gist Mar 16, 2017.
    16 changes: 16 additions & 0 deletions cheatsheet.md
    Original 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"
    ```