Created
May 7, 2015 07:50
-
-
Save data-doge/2cebfc4a35d2649aa0bc to your computer and use it in GitHub Desktop.
filtered_query_params
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 characters
| def index | |
| query_params = Rack::Utils.parse_nested_query request.env["QUERY_STRING"] | |
| @filtered_cats = Cat.where(query_params) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment