railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.9k stars 2.26k forks source link

conversion too smart? #2733

Open cpg opened 8 years ago

cpg commented 8 years ago

I am getting this error in rails_admin:

  no implicit conversion of Fixnum into String

With the following details on a model whose :

the Rails model has one field that is the main search term i am searching for, and (coincidentally) is the "model" name of the product (think motor parts).

If I search (without quotes) for "2000" (or "2000 "), I get that error, but if I search for "2000 34" or "2000 x" I do not get that error.

I am thinking that the bug might be that rails_admin is trying too hard ... by noticing that "2000" and "2000 " are integers and at some point it tries to coerce some column into a fixnum?

sbull commented 8 years ago

Looks like dup of https://github.com/sferik/rails_admin/issues/2599

sbull commented 8 years ago

Possible workaround in https://github.com/sferik/rails_admin/issues/2599#issuecomment-251715639