Simple way to escape chars in acts_as_ferret?

I’ve got search working in Rails with AAF.

term = params[:search][:term]
@results = MyModel.find_by_contents “#{term}*”

The problem is, let’s say that term is equal to “Title: Subtitle”. Then
nothing is found. Nothing is found when I try “Title: Subtitle” either.
Any tips?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs