car.rb
class car
has_and_belongs_to_many :owners
...
end
owner.rb
class owner
has_and_belongs_to_many :cars
...
end
owners.yml
me:
cars: swift_sport, s2000
not_me:
cars: swift_sport
cars.yml
s2000:
owners: leoo
swift_sport
owners: me, not_me
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.