Jeff wrote:
> What I have now is similar, but using has_many :through instead of
> habtm. What I'm looking for is something functionally equivalent to:
> 
> account = Account.find(:first)
> account.tags # returns all tags across all items, on all pages
> 
> Note that the tags are actually associated with items, which are
> associated with pages, which are associated with accounts. A few
> degrees of separation there. Will switching to habtm allow this?

Not that I'm aware of. Sorry but I think I misread the critial part of 
your post. As far as I know (and some ruby genius will come up with a 
far better idea) the only way to do what you want is to iterate through 
the pages and the items and then collect tags.

It might be possible to do it with an association but I don't know how, 
although I would be interested to know if it is possible.

> Thanks,
> Jeffr

Matt

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to