Skip to content

I get an error with send_message around :body :Symbol #3

Closed
angelacode opened this Issue Jun 29, 2011 · 2 comments

2 participants

@angelacode

This is the error I get:

 NoMethodError: undefined method `each_with_index' for :body:Symbol     from /usr/lib/ruby/gems/1.8/gems/acts-as-messageable-0.3.0/lib/acts-as-messageable/acts-as-messageable.rb:55:in `send_message'

This is using the same example in the README. Seems like it does not recognize ;body as a symbol?

@angelacode

I ended up passing in a has for the second argument and nothing as a third argument, but not sure why or what it should be.... e.g. u1.reply_to(message, {:body => "this is a body", :topic => "this is a topic}, {:something else => "nothing"})

@LTe LTe added a commit that referenced this issue Jul 2, 2011
@LTe Fix issue #3
  reply to fix
  required fix (+ specs)
  typo fix
f87c7e6
@LTe LTe closed this Jul 2, 2011
@LTe
Owner
LTe commented Jul 2, 2011

Should work now ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.