Skip to content

Instantly share code, notes, and snippets.

@cjbottaro
Created January 27, 2010 17:10
Show Gist options
  • Save cjbottaro/288010 to your computer and use it in GitHub Desktop.
Save cjbottaro/288010 to your computer and use it in GitHub Desktop.
class ApplicationController < ActionController::Base
param_accessible [:id, :page]
end
# This will filter any param except for :id and :page for ALL controllers in your entire application (because you're calling param_accessible on ApplicationController).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment