addition to adding calculated columns (i.g. using sql aggregate
functions), include additional attributes in resulting object by
passing the wild card like this:
total").group("created_at").having(["created_at > ?", 2.days.ago])
That should give you the new method "total" in addition to the default
attributes of the object. However, when I do it, I get this:
ArgumentError: wrong number of arguments (2 for 1)
It appears the select method not accepting multiple parameters?
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@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.