search for: get_random_word

Displaying 1 result from an estimated 1 matches for "get_random_word".

2007 Dec 27
0
Silent Validation Failures
...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 about it? Best, TA --~--~---------~--~----~------------~-------~--~----~ You received thi...