You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my model: validates_uniqueness_of :email, :scope => :entry_date, :message => "Already exists"
The request: Request URL: http://myapp.dev/validators/uniqueness?case_sensitive=true&scope%5Bentry_date%5D=null&contestant%5Bemail%5D=myemail%40gmail.com Request Method: GET Status Code: 404 Not Found
Only response is "true", regardless of previous entries on the same date.
Update: Just did a test, when removing the :scope everything works fine.
Hi,
i have set default value for active column as true. its value is '1'
user's model validations like:
validates :name, :uniqueness => { :scope => :active, :message => "Already exists" }
My validations are pass, even having same name with active column as 'true'
I inspect using firebugs, got parameter like scope[active] = 0.
Hope '0' as 'FALSE', So it looks name with 'FALSE' status.
The text was updated successfully, but these errors were encountered: