Skip to content

Instantly share code, notes, and snippets.

@xn
Created August 15, 2011 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xn/1145752 to your computer and use it in GitHub Desktop.
Save xn/1145752 to your computer and use it in GitHub Desktop.
- if hidden
%section#account_settings_profile.hidden
%h1
%span Profile
= form_for @user, :url => registration_path(@user) do |form|
%p
= form.label :first_name, 'First:'
= form.text_field :first_name
%p
= form.label :last_name, 'Last:'
= form.text_field :last_name
%p
= form.label :email, 'Email:'
= form.email_field :email
%p
= form.label :password, 'Password:'
= form.password_field :password
= render 'shared/buttons', :form => form
- else
%section#account_settings_profile
%h1
%span Profile
= form_for @user, :url => registration_path(@user) do |form|
%p
= form.label :first_name, 'First:'
= form.text_field :first_name
%p
= form.label :last_name, 'Last:'
= form.text_field :last_name
%p
= form.label :email, 'Email:'
= form.email_field :email
%p
= form.label :password, 'Password:'
= form.password_field :password
= render 'shared/buttons', :form => form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment