I have the following method in my model:
#find all the manufacturers names and ids or those matching a search string
def self.find_all(manufacturer="")
m_name = manufacturer.gsub(" ", '%') if manufacturer
find(:all, :select => 'id, name', :order => "name", :conditions => ["name like ?", "%#{m_name.capitalize}%"])
end
This works perfectly on my local machine, but when I put it on Heroku it works less well: if I do a search and enter more than one word it won't return any values.
What is different about Heroku?