Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Master branch broken create user method #4

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

Master branch broken create user method #4

remear opened this issue Aug 18, 2009 · 0 comments

Comments

@remear
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant