mlittle wrote:
> Robert, thanks for the reply. validates_existence_of is a plugin ->
> http://github.com/bogdans83/validates_existence_of/. I'll try to make
> this as simple as possible. Here is what i'm trying to do:
> 
> A's has many B's and B's have 1 C.
> 
> A = Users
> B = Books
> C = Libraries

Then your associations will be as follows:
class User < AR::B
  has_many :books
end

class Book < AR::B
  belongs_to :user
  belongs_to :library
end

class Library < AR::B
  has_many :books
end

> 
> Hope this clarifies everything for you. Sorry about the mistakes in my
> first post. Thanks again for your help
> 
> On Oct 1, 5:19�pm, Robert Walker <[email protected]>

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to