Created
May 16, 2011 16:55
-
-
Save lukeledet/974834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Visitor.find_or_create_by_date(:date => Time.now.to_date) | |
Visitor Load (0.5ms) SELECT "visitors".* FROM "visitors" WHERE "visitors"."date" = '2011-05-16' LIMIT 1 | |
>> Client.first.visitors.find_or_create_by_date(:date => Time.now.to_date) | |
ArgumentError: Unknown key(s): date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment