title: NameError (undefined local variable or method `devise_parameter_sanitizer'
body: <p>I'm using devise for user authentication. However, when a user tries to create an account I am getting this error:</p>
  
  <pre><code>NameError (undefined local variable or method `devise_parameter_sanitizer' 
  </code></pre>
  
  <p>This is what my devise registrations controller looks like:</p>
  
  <pre><code>def sign_up_params
  devise_parameter_sanitizer.for(:sign_up)
  end
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance</p>