User avatar upload at sign up

This commit is contained in:
Ilya Konanykhin
2017-01-18 17:18:32 +06:00
parent 8a8c82f5b7
commit a68e7eca56
6 changed files with 44 additions and 2 deletions
@@ -23,6 +23,12 @@
= f.fields_for :user_profiles, profile_builder do |builder|
= render 'user_profile_fields', f: builder
%fieldset
.form-group
%label You may upload your photo to be used as an avatar
= f.file_field :avatar
.help-block #{User::MAX_AVATAR_SIZE_KB} Kb max
%fieldset
.form-group
= f.password_field :password, placeholder: 'Password', class: 'form-control'