Ian,
quick Q regarding your so far awesome plugin: I have a user model
which has many 'items', which is basically a h_m_polymorphs
association to all sorts of models (e.g. images, texts, etc)
now, every user also has related users via a relationship model and
therefore has an overall .relationships association and many :through
=> :relationships subsets thereof (e.g .friends , .colleagues, ...).
Now what I'd like to get is all polymorphic .items of all related
users of one particular user. I gave it a try all evening but somehow
it didn't work :( Did you ever give that combination a try?
Cheers and greetings from Germany,
-J
--
Argument from Design--We build web applications
Western House 239 Western Road Sheffield S10 1LE UK
Mobile: +44 (0)797 4678409 | Office: +44 (0)114 2667712
<http://www.ardes.com/> | <http://blog.ardes.com/ian>
Hi Jörg,
> Now what I'd like to get is all polymorphic .items of all related users of
> one particular user. I gave it a try all evening but somehow it didn't work
> :( Did you ever give that combination a try?
Not yet, the plugin is in its infancy though - you're more than
welcome to fork, and add some specs for the cases you;re after - then
we can see exactly where it's falling down.
Cheers,
Ian
Morning Ian,
will do over the weekend most likely, the specing out :) However, one
thing I noticed with the current version is problems with
will_paginate:
http://groups.google.com/group/will_paginate/browse_thread/thread/1ec4603a09704001
Basically I have hmp, will_paginate and had n_h_m_t installed
together, and wp's pagination worked just fine without nhmt installed,
installing it broke the .paginate method on collections :(
-j
> For the time being I crawl back into my
> cave and feel bad for blaming nhmt ;)
:)
> I'll keep an eye on it and when/if I stumble upon that again, I'll
> post the stacktrace up here.
Great.