SyntaxFix
Write A Post
Hire A Developer
Questions
An alternative can be
c = Product.find_by("LOWER(name)= ?", name.downcase)