You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #to_str method is an implicit coercion. It means, roughly, "Even though I'm not a String, you can pretend that I am if you like." Numbers don't have a #to_str method because they are not String-like. You should call #to_s on your number before passing it to this method. This method rejects Numeric values to avoid bugs with converting floating-point values to Strings incorrectly in an automatic fashion.
Assigning a numeric query values blows up with "Can't convert Fixnum into String" which seems counterintuitive:
Here's the offending code, I obviously need some Ruby education as I can't see why
FixNum
wouldn't have ato_str
method.The text was updated successfully, but these errors were encountered: