title: Devise and paperclip, avatar not saving. In rails console shows as nil
body: <p>For some reason my image isn't saving when I submit. I have checked on my User in rails console but i get this: </p>
  
  <pre><code>avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil
  </code></pre>
  
  <p>Ive tried fixing the edit.html.erb but it doesn't seem to work. I have tried editing everything that would have to do with this :avatar tag but it isn't working.  </p>
  
  <p>edit.html.erb</p>
  
  <pre><code>&lt;%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { multipart: true }) do |f| %&gt;
  </code></pre>
  
    
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;%= f.label :avatar %&gt;
          &lt;%= f.file_field :avatar, multiple: true, name: "avatar" %&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;% if devise_mapping.confirmable? &amp;&amp; resource.pending_reconfirmation? %&gt;
  &lt;div&gt;Currently waiting confirmation for: &lt;%= resource.unconfirmed_email %&gt;&lt;/div&gt;
  &lt;% end %&gt;
  &lt;%= f.label :password %&gt; &lt;i&gt;(leave blank if you don't want to change it)&lt;/i&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="field"&gt;
   &lt;%= f.label :current_password %&gt; &lt;i&gt;(we need your current password to confirm your changes)&lt;/i&gt;&lt;br /&gt;
   &lt;%= f.password_field :current_password, autocomplete: "off" %&gt;
   &lt;/div&gt;
  
  &lt;div class="actions"&gt;
   &lt;%= f.submit "Update" %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  
  &lt;h3&gt;Cancel my account&lt;/h3&gt;
  
  &lt;p&gt;Unhappy? &lt;%= button_to "Cancel my account",   registration_path(resource_name), data: { confirm: "Are you sure?" }, method:  :delete %&gt;&lt;/p&gt;
  
  &lt;%= link_to "Back", :back %&gt;        
  </code></pre>
  
  <p>user.rb</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
  devise :database_authenticatable, :registerable,
       :recoverable, :rememberable, :trackable, :validatable
  validates :avatar, presence: true
  has_attached_file :avatar, :styles =&gt; { :medium =&gt; "300x300&gt;", :thumb =&gt; "100x100#" }, :default_url =&gt; "default_avatar.png"
  validates_attachment_content_type :avatar, :content_type =&gt; /\Aimage\/.*\Z/
  </code></pre>
  
  <p>application_controller.rb</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
  protect_from_forgery with: :exception
  before_filter :authenticate_user!
  before_filter :configure_permitted_parameters, if: :devise_controller?
  protected
  def configure_permitted_parameters
  devise_parameter_sanitizer.for(:edit) { |u| u.permit({ roles: [] }, :email, :password, :password_confirmation, :first_name, :last_name, :age, :about_me, :gender, :avatar ) }
  </code></pre>