On Mon, May 17, 2010 at 10:23 PM, John Mettraux <[email protected]> wrote: > > and your Rails views look like > > ---8<--- > class WorkController > def index > �...@roles = Roles.find_by_user(current_user) > �...@workitems = @roles.inject([]) do |a, role| > RuoteKit.storage_participant.by_participant(role) > end > end > end > --->8---
Sorry, ---8<--- class WorkController def index �...@roles = Roles.find_by_user(current_user) �...@workitems = @roles.inject([]) do |a, role| a += RuoteKit.storage_participant.by_participant(role) end end end --->8--- is better. -- John Mettraux - http://jmettraux.wordpress.com -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
