From: Paul Harrington Date: 2010-02-15T08:26:32+09:00 Subject: Re: can't convert Symbol into String Ralph Shnelvar wrote: > Sunday, February 14, 2010, 2:46:02 PM, you wrote: > > BC> Ralph Shnelvar wrote: >>> I'm getting the following error > >>> - - - - - > >>> TypeError in Users#new > >>> Showing app/views/users/new.html.erb where line #20 raised: > > > I posted the question here because I am asking a Ruby question. > > Let me rephrase the question ... > > Under what circumstances will Ruby not be able to convert a symbol into > a string? > > Ralph When the method in question is expecting a String and not a Symbol (as in, its most likely not calling to_s in the argument in question). I don't know what shnView view is returning, nor what sort of input its return value's "label" method is expecting, but why not just pass "email" to it? Alternatively, yeah, post this (possibly on the Rails list) with more relatively info. -- Posted via http://www.ruby-forum.com/.