Daniel Lunde
Not a member
Daniel Lunde's latest activity
Friday, May 02 2008
-
Daniel Lunde commented at 4:42 PMHere's a real world example where I've needed to use each_with_join:
class Feature < ActiveRecord::Base has_many :featured_items, :dependent => :destroy, :... -
Daniel Lunde commented at 4:14 PMPratik:
It seems like the obvious thing to do, but there's a problem with it. Let me give a more complete example.
>> pp frank.groups [#<Group id: 2, name:...
Thursday, May 01 2008
-
Daniel Lunde commented at 9:22 PMWhat about the cases where you are sorting by groups
class User < ActiveRecord::Base has_many :memberships has_many :groups, :through => :memberships,... -
Daniel Lunde created the ticket at 5:28 PMIt is often the case when I iterate over an array of objects in a has_many_through association that I want access to both the :has_many objects and the :throug...