Hi. I’m trying to perform the following comparison
if (params[:bid][:points] <= session[:user][:points])
But I get the following error
“comparison of String with 0 failed”
I have tried changing the code to this
if (params[:bid][:points].to_i <= session[:user][:points])
But now I get
“too few arguments”
Can anyone see what’s wrong? Surely this should be a pretty simple
thing?
Thanks