RailsCasts Pro episodes are now free!

Learn more or hide this

Aquaio's Profile

GitHub User: Aquaio

Comments by

Avatar

I take it you are using Postgres? Likely your message is returning arrays for "to" and "from" and Postgres is throwing an error because it expects a string. Try message.to.to_s or message.from.first