RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: kvargasmoura
You can use:
def self.search(search) if search #case insensitive where('email ILIKE ?', "%#{search}%") else scoped end end
You can use: