Skip to content

Instantly share code, notes, and snippets.

@fuJiin
Created October 27, 2011 22:13
Show Gist options
  • Select an option

  • Save fuJiin/1321059 to your computer and use it in GitHub Desktop.

Select an option

Save fuJiin/1321059 to your computer and use it in GitHub Desktop.
Pass params
def pass_params(options = {})
output = params.reject do |k, v|
k == "controller" ||
k == "action"
end.merge(options).reject do |k, v|
v == "clear"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment