in a Rails 3.2 app I have a search field which draws on the following routine in the user model.
def self.search(search)
if search
where('fullname LIKE ? OR email LIKE ?', "%#{search}%", "%#{search}%")
else
scoped
end
end
This appears to be performing a case sensitive search. How can I modify this to so that it is not case sensitive?
Many thanks