Another newbie question by me...
I have this:
class User < ActiveRecord::Base
...
has_one :book, :through => :library
...
end
class Library < ActiveRecord::Base
has_one :book, :dependent => :destroy
end
class Library < ActiveRecord::Base
belongs_to :library
validates_existence_of :library
end
I just don't know what my route will look like. Any help or
suggestions? Are my models correct in how I used the has_one :through
Mike
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---