Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Master branch broken create user method #4

Open
remear opened this Issue Aug 18, 2009 · 0 comments

Comments

Projects
None yet
1 participant

remear commented Aug 18, 2009

NoMethodError in UsersController#create

undefined method `name' for #User:0x23b5400

This is caused by validations in user.rb for :name since the name field is not part of the initial migration.

validates_format_of :name, :with => Authentication.name_regex, :message => Authentication.bad_name_message, :allow_nil => true
validates_length_of :name, :maximum => 100

Removing these lines fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment