title: Devise: Unpermitted parameters
body: <p>I don't know why, but the following code just stopped working (I didn't even notice how it happened)</p>
  <p><strong>routes.rb</strong></p>
  <pre><code>devise_for :users, components: {registrations: 'registrations', sessions: 'sessions'}
  </code></pre>
  <p><strong>registations_controller.rb</strong></p>
  <pre><code>class RegistrationsController &lt; Devise::RegistrationsController
    before_filter :configure_permitted_parameters
  
    def configure_permitted_parameters
      devise_parameter_sanitizer.for(:sign_up).push(:name, :surname, :username, :email, :avatar)
      devise_parameter_sanitizer.for(:account_update).push(:name, :surname, :email, :avatar)
    end
  
  end
  </code></pre>
  <p>As I said, everything worked fine before, but now I'm getting:</p>
  <pre><code>Processing by Devise::RegistrationsController#create as HTML
    Parameters: {&quot;utf8&quot;=&gt;&quot;✓&quot;, &quot;authenticity_token&quot;=&gt;&quot;lvuPOmTRqv6XUQ/O1g4Q9VNvzD7DgGCHocY/OlAvKHEIvWAHvlS982hxSZZzzAESCpmL5QTUcTLw/c9ME/sUFQ==&quot;, &quot;user&quot;=&gt;{&quot;name&quot;=&gt;&quot;John&quot;, &quot;surname&quot;=&gt;&quot;Doe&quot;, &quot;username&quot;=&gt;&quot;foobar&quot;, &quot;email&quot;=&gt;&quot;foobar@example.com&quot;, &quot;password&quot;=&gt;&quot;[FILTERED]&quot;, &quot;password_confirmation&quot;=&gt;&quot;[FILTERED]&quot;}, &quot;commit&quot;=&gt;&quot;Register&quot;}
  Unpermitted parameters: name, surname, email
  </code></pre>
  <p>Cofiguration:</p>
  <ul>
  <li>Rails 4.2.5</li>
  <li>Devise 3.5.6</li>
  </ul>
  <p><em>P.S.: Now I finally understand why should I cover my code with unit-tests and use Travis CI</em></p>