I came had this error and found it was being caused by trying to add a symbol to a string.
ruby-1.9.2-p180 > a string"+:a_symbol #=> TypeError: can't convert Symbol into String
I came had this error and found it was being caused by trying to add a symbol to a string.
ruby-1.9.2-p180 > a string"+:a_symbol #=> TypeError: can't convert Symbol into String
Hi
ruby-1.9.2-p180 > a string"+:a_symbol #=> TypeError: can’t convert
Symbol into String
You cannot concat string to symbol directly.
convert symbol to string and then concat it.
“string”+:sym.to_s
to_s is used to convert to string