Friday, May 7, 2010

[Rails] named_scopes in deep relations

Hi,

I try to use a named scope for using searchlogic, but I don't
understand how to do in this case:

I want to find activities by area_id
Each activity HAS MANY occations
Each occation has one location
A column in locations is called area_id

This beats me, hope anyone can help!

:-) j

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate