I noticed the has_many relationship method allows for :group and :having options. Can anyone provide an example of when these would be used in a has_many?
Something like this? has_many :accounts, :select => 'name, SUM(cash) as money', :group => :name, :having => '"created_at > ?", 2.days.ago' I cant ever imagine a has_many like that above. But is that why they include the :group and :having options, for sake of completeness? thanks for response -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

