Skip to content

Commit

Permalink
#30 little form changes
Browse files Browse the repository at this point in the history
  • Loading branch information
halit committed Aug 29, 2013
1 parent 14365dc commit 877d7ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def set_user_time_zone
def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :email) }
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:first_name, :last_name, :email,
:password, :password_confirmation) }
:website, :password, :password_confirmation) }
end

layout :layouter
Expand Down
2 changes: 2 additions & 0 deletions app/views/devise/registrations/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
= f.error_notification
.form-inputs
= f.input :first_name, :autofocus => true
= f.input :last_name, :required => true
= f.input :website
= f.input :email, :required => true
= f.input :password, :required => true
= f.input :password_confirmation, :required => true
Expand Down
3 changes: 3 additions & 0 deletions app/views/welcome/users.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
%p
%strong Last Name:
= current_user.last_name
%p
%strong Web Site:
= current_user.website
%p
%strong Email:
= current_user.email
Expand Down

0 comments on commit 877d7ed

Please sign in to comment.