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