search for: active_1

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

Did you mean: active1
2013 May 07
3
validates :uniqueness apparently doesn't
...attribute does invalidate the record. All validations on other attributes behave as expected. I''ve done what I could to search the Rails docs, Google, Stack Overflow, and this forum for similar problems, and found nothing. What''s wrong? ===== All code is excerpted. Fixture: active_1: name: Thomas Jefferson tracking_code: tj_001_TC01 ... Class declaration: class Family < ActiveRecord::Base attr_accessible ... :tracking_code validates :tracking_code, :presence => true, :length => { :maximum => 20, :minimum => 8 }, :uniqueness => true Test case: se...