Displaying 2 results from an estimated 2 matches for "external_model".
2006 Jul 23
8
belongs_to :through ?
Suppose I have a belongs_to relationship and the thing it belongs to,
belongs in turn to something else.
For example, I would like to do:
belongs_to :city
belongs_to: :county, :through => :city
While it is not too much trouble to do obj.city.county, there are times
when I need to iterate through the attributes and include this
second-order attribute. Special code to handle this messes up
2006 Apr 18
7
Connecting to multiple databases
Hi Everyone,
I am trying to connect to multiple databases and followed along the
Recipe in Chad Fowlers ''Rails Recipes'' book (which basically is about
establishing the connection in a subclass of ActiveRecord::Base, and
inheriting all classes in need of this connection from this class)
Chad Fowler says:
"You won''t be able to instantiate an External, of course,