Skip to content

Instantly share code, notes, and snippets.

@felippemr
Created November 22, 2013 18:29
Show Gist options
  • Save felippemr/7604646 to your computer and use it in GitHub Desktop.
Save felippemr/7604646 to your computer and use it in GitHub Desktop.
before_filter :update_sanitized_params, if: :devise_controller?
def update_sanitized_params
devise_parameter_sanitizer.for(:sign_up) {|u| u.permit(:name,:email, :password, :password_confirmation)}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment