Thank you for visiting. I'm still new to connecting models and have a question. I have two models currently:

```
create_table "users", force: true do |t|
 t.string   "first_name"
 t.string   "last_name"
 t.string   "email"
 t.string   "password_digest"
 t.string   "user_name"
 t.date     "birthdate"
 t.integer  "zip_code"
 t.string   "gender"
 t.datetime "created_at"
 t.datetime "updated_at"
 t.string   "avatar_file_name"
 t.string   "avatar_content_type"
 t.integer  "avatar_file_size"
 t.datetime "avatar_updated_at"
 t.string   "background_file_name"
 t.string   "background_content_type"
 t.integer  "background_file_size"
 t.datetime "background_updated_at"
 t.string   "slug"
end

create_table "user_avatars", force: true do |t|
 t.integer  "user_id"
 t.datetime "created_at"
 t.datetime "updated_at"
 t.string   "avatar_file_name"
 t.string   "avatar_content_type"
 t.integer  "avatar_file_size"
 t.datetime "avatar_updated_at"
end

```

As you can see the User model is getting really long and someone told me before it's better if I separate avatar to a separate model. My question is how will I be able to change a user profile information without having two separate Form\_for fields? Since I would like for a user to be able to edit there user\_name, first\_name etc and also UserAvatar.avatar at the same time. Thank you for all the help and those who help me learn something new. 

For more information please ask

**User model**

```
has_one :user_avatar

has_attached_file :avatar, :styles => {
 :medium => "200x200>",
 :small => "120x120#",
 :thumb => "75x75#",
 :default_url => "http://www.adtechnology.co.uk/images/UGM-default-user.png"
   }

validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/

```

**UserAvatar model**

```
belongs_to :user

has_attached_file :avatar, :styles => {
 :medium => "200x200>",
 :small => "120x120#",
 :thumb => "75x75#",
 :default_url => "http://www.adtechnology.co.uk/images/UGM-default-user.png"
   }

validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/

```

**Views = Users/index**

```
<%= form_for @user, url: user_path(current_user), html: { method: :put, :multipart => true } do |f| %>
 <p class="editpage">Profile Picture: <%= f.file_field :avatar %></p>
 <%= f.submit "Upload" %>
<% end %> 

```