I faced the following error when running filtering using ransack
:
ArgumentError wrong number of arguments (given 1, expected 0)
and stack trace is showing this:
object.ransack(query_params)
When dug deeper I have found that the error appears in aasm_create_scope
method from the aasm
gem.
query_params = {accepted: "value"}
What could go wrong?