I’m trying to call find with the :params key, using a method call that looks like this:
Product.find(:all, :params => { :name => "Test" })
Error:
ArgumentError: Unknown key(s): params
Calling Product.find(:all) works just fine, but when I try to pass anything in with the :params key it throws an error.
If you are using Rails 3.x try:
If Rails 2.x try: