Skip to content

Instantly share code, notes, and snippets.

@lbalceda
lbalceda / gist:6136282
Last active February 14, 2018 19:20
Fix "unpermitted parameters" devise & rails 4 strong parameters issue
# Fix "unpermitted parameters" devise & rails 4 strong parameters issue
# registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController
...
def sign_up_params
params.require(:user).permit(:email, :username, :whatever, :other, :params)
end
end