Displaying 1 result from an estimated 1 matches for "chicken_without_a_nam".
Did you mean:
  chicken_without_a_name
  
2007 Jan 20
0
[PLUGIN] instance_validations
...you don''t define any instance validations, you''ll get the expected
behavior:
  chicken = Chicken.new
  chicken.valid?     => false, will have an error on name
If you do specify instance validations, the class validations are
ignored and only instance validations are used:
  chicken_without_a_name = Chicken.new
  class << chicken_without_a_name
    validates_presence_of :home_town
  end
  chicken_without_a_name.valid?                     => false, will
have an error on home_town but not name
  chicken_without_a_name.home_town = "Roostershire"
  chicken_without_a_name.vali...