Hi,
I can't say if the patch is a good idea or not but I thought that the
recommended way to handle this would be to move params[:login] + '%'
into a variable and compare against that.
e.g. (untested)
login = params[:login] + '%'
User.select{ |u| u.login =~ login }
On a different note, I'm beginning to question the long term viability
of Ambition, the support for it seems to have dried up since the
author's other projects have taken up his attention. I am not in a
position to support it myself at the moment but do have a need for a
Ruby-ish language for generating SQL queries that can be syntax
checked before execution and there are not too many alternatives!
Allan