I installed an intermediate instance of rails 3.1 application on Heroku and everything works fine, but I get a strange error when I try to send emails. I am using the sendgrid addon to send email. Full error below:
NoMethodError: undefined method `index' for #<Mail::Message:0x000000048daf28> /app/.bundle/gems/ruby/1.9.1/gems/mail-2.3.0/lib/mail/message.rb:1289:in `method_missing' /app/.bundle/gems/ruby/1.9.1/gems/mail-2.3.0/lib/mail/encodings.rb:117:in `value_decode' /app/.bundle/gems/ruby/1.9.1/gems/mail-2.3.0/lib/mail/encodings.rb:101:in `decode_encode' /app/.bundle/gems/ruby/1.9.1/gems/mail-2.3.0/lib/mail/fields/unstructured_field.rb:74:in `do_decode'
if I just create a message object without causing it to be delivered and inspected, everything seems fine. I do not see this error in my working application. Can you tell me what this error means and how to solve it? Thanks.
source share