Skip to content

Instantly share code, notes, and snippets.

@PhilippePerret
Created November 10, 2011 09:46
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/1354514 to your computer and use it in GitHub Desktop.
Save PhilippePerret/1354514 to your computer and use it in GitHub Desktop.
Application Rails 3.1 avec Devise — Edition de l'utilisateur
> in app/views/devise/registrations/edit.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
%td
= f.submit "Enregistrer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment