Ok, I got it working! I had forgotten to include a colon in front of the field names between the opening and closing brackets.
Arthur ________________________________ From: Arthur Baldwin <[email protected]> To: "[email protected]" <[email protected]> Sent: Monday, January 16, 2012 12:24 PM Subject: Re: [Hobo Users] Re: Multi - Field Uniqueness What do you mean when you say "fall back to the rails validation"? Do I need to make changes to a different file than the conact.rb file in the models directory? Arthur ________________________________ From: kevinpfromnm <[email protected]> To: [email protected] Cc: Arthur Baldwin <[email protected]> Sent: Monday, January 16, 2012 12:03 PMco Subject: [Hobo Users] Re: Multi - Field Uniqueness you'll need to fall back to the rails validation (which the hobo is a rails validation, just a shortcut for a common use case). IIRC, the syntax is like validates_uniqueness_of :field, :scope => [:other_field1,...] If that's not enough to get you going, you can get to the rails docs pretty easy with a quick google search on validates_uniquess_of (should autocomplete after the u) -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/VvjxOt3xpyAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
