Hmmm... it isn't liking this.... in my model I added:
def self.error_summary
ActiveRecord::Base.connection.execute(
'select error_names.description, count(error_names.id) as count
' +
'from error_logs, error_types, error_names ' +
'where error_types.parent_table = \'XXXXXXXXXXX\' ' +
'and error_types.id = error_logs.error_type_id ' +
'and error_names.id = error_logs.error_name_id ' +
'and error_logs.parent_table_row_id = #{id} ' +
'group by error_names.description'
)
end
Is causing this to barf:
<repeat attr="error_summary">
<table-plus fields="description, count">
</table-plus>
</repeat>
...or can't I insert table-plus within a contrived collection?
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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 this group at
http://groups.google.com/group/hobousers?hl=en.