Dan Smith wrote:> Hi. I''m trying to perform the following comparison
....> 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
try a puts on params[:bid][:points] and session[:user][:points] to see
what it gives, because I guess that one of this 2 vars is nil?!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---