title: Ruby on Rails Devise Custom Form-- Form not Updating on Edit
body: <p>I am using Rails 4, Ruby 2.2, and the latest version of the 'Devise' gem.</p>
  
  <p>So far, I have generated a devise User resource, and created a migration with custom fields (firstName, lastName, etc). This worked fine.</p>
  
  <p>I created a strong parameter on my applications controller, seen here:</p>
  
  <pre><code>      before_action :configure_permitted_parameters, if: :devise_controller?
  
        protected
  
        def configure_permitted_parameters
            devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :password, :email, :firstName, :lastName, :dateofBirth, :address1, :address2, :city, :state, :zip)}
        end
  </code></pre>
  
  <p>I proceeded to create a view for the User resource with the devise command on my terminal. I checked my routes via rake to ensure that I am loading "new.html.erb" file upon the URL "/users/sign_up".</p>
  
  <p>The issue I am having is when I go to update my sign up form on new, it doesn't update! I have changed the code to include other fields, but it still shows the same standard form that comes with devise (email, password, password confirmation), even though in the erb file that is linked through the route i have explicitly added three more fields for username and first name and last name.</p>
  
  <p>I have tried editing the header and even that doesn't update! When I update other view files, they update fine, so it is not an overall view issue.</p>
  
  <p>This is my code for the "new.html.erb":</p>
  
  <pre><code>     &lt;h2&gt;Sign up&lt;/h2&gt;
      &lt;%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %&gt;
    &lt;%= devise_error_messages! %&gt;
  
   &lt;div class="field"&gt;
            &lt;%= f.label :username %&gt;&lt;br /&gt;
            &lt;%= f.text_field :username, autofocus: true %&gt;
          &lt;/div&gt;
       &lt;div class="field"&gt;
      &lt;%= f.label :firstName %&gt;&lt;br /&gt;
      &lt;%= f.text_field :firstName %&gt;
    &lt;/div&gt;
  
    &lt;div class="field"&gt;
      &lt;%= f.label :email %&gt;&lt;br /&gt;
      &lt;%= f.email_field :email %&gt;
    &lt;/div&gt;
  
    &lt;div class="field"&gt;
      &lt;%= f.label :password %&gt;
      &lt;% if @minimum_password_length %&gt;
      &lt;em&gt;(&lt;%= @minimum_password_length %&gt; characters minimum)&lt;/em&gt;
     &lt;% end %&gt;&lt;br /&gt;
      &lt;%= f.password_field :password, autocomplete: "off" %&gt;
    &lt;/div&gt;
  
    &lt;div class="field"&gt;
     &lt;%= f.label :password_confirmation %&gt;&lt;br /&gt;
      &lt;%= f.password_field :password_confirmation, autocomplete: "off" %&gt;
    &lt;/div&gt;
    &lt;div class="actions"&gt;
      &lt;%= f.submit "Sign up" %&gt;
    &lt;/div&gt;
      &lt;% end %&gt;
      &lt;%= render "users/shared/links" %&gt;
  </code></pre>
  
  <p>I am speculating the devise gem may be overriding the user specific view and sending a default view (which would explain no updating), but am not sure how to solve this issue if this is indeed the issue.</p>
  
  <p>Thanks in advance !</p>