On Thu, May 05, 2011 at 12:07:24PM -0700, Pedro Teixeira wrote:
> 
> I'm receiving the following error:
> 
> message        #<NoMethodError: undefined method `[]' for nil:NilClass>
> trace
> /opt/intelie/itsm/shared/bundle/ruby/1.8/gems/ruote-2.2.0/lib/ruote/
> log/pretty.rb:116:in `pretty_print'
> 
> It seems that msg['action'] is nil, is that possible?

Hello Pedro,

it could also be that msg is nil. You should probably put a

  p msg

in line 115 to get a feel for what's going wrong.

msg should not be nil and msg['action'] too should not be nil, else there is 
something wrong (could it be that get_msgs is fetching errors, expressions, 
schedules instead of msgs, those don't have an "action" field. Putting the "p 
msg" can help tell).

> it's worth mentioning that I'm using a custom activerecord storage:
> https://gist.github.com/957673
> [basically a copy from the sequel one]

Keeping it bookmarked for further debugging with you.


Best regards,

-- 
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

Reply via email to