Skip to content

Instantly share code, notes, and snippets.

@PhilippePerret
Created November 10, 2011 09:48
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 PhilippePerret/1354516 to your computer and use it in GitHub Desktop.
Save PhilippePerret/1354516 to your computer and use it in GitHub Desktop.
Application Rails 3.1 avec Devise — Création de l'utilisateur
> in app/views/devise/registrations/new.html.haml
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
= devise_error_messages!
%table
%tr
%td
= f.label :name, "Nom"
%td
= f.text_field :name
%tr
%td
= f.label :email
%td
= f.text_field :email
%tr
%td
= f.label :password, "Mot de passe"
%td
= f.password_field :password
%tr
%td
= f.label :password_confirmation, "Confirmation"
%td
= f.password_field :password_confirmation
%tr
%td
%td
= f.submit "S'inscrire"
= render :partial => "devise/shared/links"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment