Sunday, February 14, 2010, 4:26:32 PM, you wrote:
PH> Ralph S. wrote:
Sunday, February 14, 2010, 2:46:02 PM, you wrote:
BC> Ralph S. 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
PH> When the method in question is expecting a String and not a Symbol
PH> in, its most likely not calling to_s in the argument in question). I
PH> don’t know what shnView view is returning, nor what sort of input
PH> return value’s “label” method is expecting, but why not just pass
PH> “email” to it? Alternatively, yeah, post this (possibly on the Rails
PH> list) with more relatively info.
Ok … this is for the next person who has this error and is/was as
confused as I was.
Rails is pointing to the wrong place. What Paul and the other posters
were tell me was that the problem lies deeper in the code.
I was confused because I thought that the error was in my *.erb file.
Instead … as all the posters insisted … it was in the method being
called and not in the caller.
Thank you all for your help and patience.