I have the following setup:
routes.rb
devise_for :users, :path_names => { :controllers => {:omniauth_callbacks => "omniauth_callbacks", :registrations => "registrations"}
and RegistrationController
:
class RegistrationsController < Devise::RegistrationsController
def update
...
end
def user_params
params.require(:user).permit(:tw_account, :fb_account, :current_password, :password, :password_confirmation)
end
end
But every time when I try to update the users' data, I get this error message:
Unpermitted parameters: tw_account, fb_account
But when I create a new account with these two fields, they're saved. How to make them update-able?
Thank you