My Rails has a regular ActiveRecord account model stored in the database. The model will store the URL in a remote XML file that defines some other objects.
For example, the has_many: gallery account, but the Gallery model is simply defined by nodes in the XML document. So, how do I get / accounts / 1 / galleries to show galleries from this XML account?
How to set up this relationship? I know how to make basic non-AR models, but I'm not sure how to define an association, or do I need to create a gallery model at all.
source
share