Skip to content

Instantly share code, notes, and snippets.

@data-doge
Created May 7, 2015 07:50
Show Gist options
  • Select an option

  • Save data-doge/2cebfc4a35d2649aa0bc to your computer and use it in GitHub Desktop.

Select an option

Save data-doge/2cebfc4a35d2649aa0bc to your computer and use it in GitHub Desktop.
filtered_query_params
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