I am fairly new to rails, and am using this search form
  <%= form_tag producer_path(@user), method: :get do %>
    <p>
      <%= text_field_tag :search, params[:search] %>
      <%= submit_tag "Search", name: nil %>
    </p>
  <% end %>
and in the model a SQL LIKE
  def self.search(search)
    if search
      find(:all, conditions: ['name LIKE ?', "%#{search}%"])
    else
      find(:all)
    end
  end
I expected this to be case insensitive by default, but it isn't. I am using PostgreSQL 9.1. Is this something I need to configure for the database, and if so where?
BTW I see the following paramaters in the URL including an UTF8 hash with an unprintable character (in the browser address bar, here in html it seems to show up as a check sign), which I don't know where that came for. Could this UTF8 encoding be the source of the problem?
?utf8=✓&search=
 
     
     
    