Created
January 27, 2010 17:10
-
-
Save cjbottaro/288010 to your computer and use it in GitHub Desktop.
This file contains 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
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