Permalink
Browse files

Make sign up work

  • Loading branch information...
1 parent fedd80e commit d87aefd53119a6a9026822ee7aa5409a82cbd55f @ruprict committed Nov 17, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −1 app/models/user.rb
  2. +4 −0 app/views/devise/registrations/new.html.haml
View
2 app/models/user.rb
@@ -6,6 +6,6 @@ class User
:recoverable, :rememberable, :trackable, :validatable
field :name
validates :name, :presence => true, :uniqueness => true
- attr_accessible :name
+ attr_accessible :name, :email, :password, :password_confirmation
embeds_many :events
end
View
4 app/views/devise/registrations/new.html.haml
@@ -2,6 +2,10 @@
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
= devise_error_messages!
%p
+ = f.label :name
+ %br/
+ = f.text_field :name
+ %p
= f.label :email
%br/
= f.email_field :email

0 comments on commit d87aefd

Please sign in to comment.