title: Getting "Filter chain halted as :validate_account_update_params rendered or redirected" when trying to update user
body: <p>I am using ng-token-auth and devise_token_auth for authentication. When I am trying to update user using </p>
  
  <pre><code>$auth.updateAccount
  </code></pre>
  
  <p>it's showing me</p>
  
  <pre><code>Unpermitted parameters: credentials, registration
  Filter chain halted as :validate_account_update_params rendered or redirected
  </code></pre>
  
  <p>I have included the following in application_controller.rb</p>
  
  <pre><code>before_action :configure_permitted_parameters, if: :devise_controller?
  private
  def configure_permitted_parameters
   devise_parameter_sanitizer.for(:sign_up) &lt;&lt; :name
   devise_parameter_sanitizer.for(:account_update) &lt;&lt; :name &lt;&lt; :credentials
  end
  </code></pre>
  
  <p>Also, credentials field is serialized as an Array in the User model</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
   serialize :credentials, Array
  end
  </code></pre>