Change find method in database search so that it isn't case sensitive in Rails app
- by Ryan
Hello,
I am learning Rails and have created a work-in-progress app that does one-word searches on a database of shortcut keys for various programs (http://keyboardcuts.heroku.com/shortcuts/home). The search method in the Shortcut model is the following:
def self.search(search)
search_condition = "%" + search + "%"
find(:all, :conditions…