def matched_members
matched_members = []
availabilities.each do |availability|
...
Ruby Rails join refactor
by https://www.google.com/accounts/o8/id?id=AItOawmRvMhcLFwL72d7b-9gx7YpThiobwkY3Co,
February 24, 2011 23:12,
No refactoring, tagged with rails activerecord joins
PageWidget.find(:all, :joins => "inner join pages on pages.id = page_widgets.page_id inner join phases on phases.id = pages.phase_id inner join trips on trips.id = phases.trip_id", :conditions => ['organization_id = ?', some_org_id]).size
Ruby Clean up ugly join statement
by calebcohoon.myopenid.com,
April 10, 2010 18:23,
3 refactorings, tagged with rails activerecord joins
Is there anyway to convert ...
I'm trying to do a join bet...