Ransack search, how to search for each word by splitting input search parameter
问题 I am currently experimenting using the ransack gem to conduct a search on a model in Rails. As it stands I am using the basic setup. Controller: def index @q = Person.search(params[:q]) @people = @q.result(:distinct => true) end View: <%= search_form_for @q do |f| %> <%= f.label :name_cont %> <%= f.text_field :name_cont %> <%= f.submit %> <% end %> I have managed to find lot of information about conducting searches on multiple fields, however, I haven't managed to find anything to help me to