Bike!Bike! Website!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
649 B

= form_for @user, :html => (@user.id ? {:multipart => true} : {}) do |f|
%div{:class => (@user.id ? 'columns medium-6' : '')}
- if @user.errors.any?
#error_explanation
%h2= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:"
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
= field f, :username, :text_field
= field f, :email, :text_field
- if !@user.id
= field f, :password, :password_field
= field f, :password_confirmation, :password_field
= actions :register
- if @user.id
.columns.medium-6
= field f, :avatar, :image_field, @user.avatar_url
= actions :save