Skip to content

Instantly share code, notes, and snippets.

@yumitsu
Created December 18, 2010 02:10
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 yumitsu/746050 to your computer and use it in GitHub Desktop.
Save yumitsu/746050 to your computer and use it in GitHub Desktop.
- semantic_form_for [@user] do |form|
= form.input :username
= form.input :email
= form.input :password, :as => :password
= form.input :password_confirmation, :as => :password
= form.input :roles, :as => :select, :collection => [:admin, :moderator], :prompt => false
%br/
- form.buttons do
= form.commit_button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment