Using :join option in find

Dark Ambient
Mon, 25 Sep 2006 12:12:28 -0000

I''ve been having problems getting one association to work in my models
setup. I believe becasue of it not having the standard name
convention. Although I''m not sure why there seems to be no way to
designate the naming used in the model associations.

Anyway, after searching for a bit I found that you can add :join to a
find statement and by doing so I was able to enjoy all of the AR magic
in the other models and the one that is a rogue :).    One caveat in
the material  though to adding the :join , it said next to this option
"rarely used".  So I''m wondering what "rarely used"
would mean ? Is it
because it''s a bad thing or because there are better ways to do it.
Is there a way to add a join statement in the model association code
?

Stuart

--
http://en.wikipedia.org/wiki/Dark_ambient

--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---