Displaying 1 result from an estimated 1 matches for "make_new_alia".
Did you mean:
make_new_alias
2007 Dec 27
0
Silent Validation Failures
...te, :allow_nil => false
validates_length_of :email, :within => 6..100
validates_uniqueness_of :user_alias, :email, :case_sensitive =>
false
validates_inclusion_of :gender, :in => %w( m f ), :message => '': So
what are you then?''
after_validation_on_create :make_new_alias
...
protected
def make_new_alias
self.user_alias = "#{get_random_word(:gender =>
self.gender ).word.downcase}.to_s}"
end
Get random word is just a find off of a table of exactly that.
Any one have any ideas why this might be happening? Is there anything
I can do...