<commit_before>= SimpleSearch

SimpleSearch brings simple search to ActiveRecord. It ads <tt>simple_search</tt> named scope that accepts query as parameter.
The idea is that you provide the query and plugin does the rest (parse query and compose where statement).

As you can see from example below, it works best in combination with a simple search form.

== Example

=== View

  <% form_tag request.path, :method => 'get' do %>
    <%= text_field_tag :query, params[:query] %>
  <% end %>

=== Model
  
  class User < ActiveRecord::Base
    acts_as_simply_searchable
  end
  
  # Columns: id, login, email, crypted_password, salt<commit_msg>README updates<commit_after>= SimpleSearch

SimpleSearch brings simple search to ActiveRecord. It ads <tt>simple_search</tt> named scope that accepts query as parameter.

The idea is that you provide the query and plugin does the rest (parse query and compose where statement).

As you can see from example below, it works best in combination with a simple search form.

== Example

=== View

  <% form_tag request.path, :method => 'get' do %>
    <%= text_field_tag :query, params[:query] %>
  <% end %>

=== Model
  
  class User < ActiveRecord::Base
    acts_as_simply_searchable
  end
  
  # Columns: id, login, email, crypted_password, salt
{'fraction_non_alphanumeric': 0.09006211180124224, 'fraction_numerical': 0.0, 'mean_word_length': 4.135458167330677, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6831159', 'n_tokens_mistral': 380, 'n_tokens_neox': 363, 'n_words': 154}