RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: Aquaio
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