[Rails] HABTM: at least one coupled user
by Leon Bogaert other posts by this author
Aug 13 2007 3:13PM messages near this date
[Rails] Re: bug in multiple map.resources :has_many ?
|
[Rails] Re: Setting Primary Key (`id` field) with fixtures
Hi all!
I have this "thing". Let's say it is a car. And a car belongs to one or
more users. So there has to be at least one!
How can I add this validation to Rails? I tried to create some extra
validation. But that sucked big time. You guys have a plugin or some
rails core code that works?
Thanks in advance!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta
lk" group.
To post to this group, send email to rubyonrails-talk@[...].com
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@[...].com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|