Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sign up work

  • Loading branch information...
commit d87aefd53119a6a9026822ee7aa5409a82cbd55f 1 parent fedd80e
Glenn Goodrich authored
2  app/models/user.rb
View
@@ -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
4 app/views/devise/registrations/new.html.haml
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.