rummage_ecto icon indicating copy to clipboard operation
rummage_ecto copied to clipboard

FunctionClauseError error

Open hlongvu opened this issue 6 years ago • 5 comments

I got this error with rummage_ecto 2.0.0-rc.0

Request: GET /products?page=1 ** (exit) an exception was raised: ** (FunctionClauseError) no function clause matching in Keyword.merge/2 (elixir) lib/keyword.ex:704: Keyword.merge([repo: nil, per_page: 10, search: Rummage.Ecto.Hook.Search, sort: Rummage.Ecto.Hook.Sort, paginate: Rummage.Ecto.Hook.Paginate], nil) (rummage_example) web/models/product.ex:3: RummageExample.Product.uniq_merge/2 (rummage_example) web/models/product.ex:3: RummageExample.Product.rummage/2 (rummage_example) web/controllers/product_controller.ex:12: RummageExample.ProductController.index/2

hlongvu avatar Sep 13 '18 02:09 hlongvu

Same issue for me.

chevinbrown avatar Sep 18 '18 14:09 chevinbrown

Hi @hlongvu and @chevinbrown, Rummage Phoenix and Rummage Phoenix Example don't work with Rummage Ecto 2.0.0-rc.0 yet. I am working on it now.

thebugcatcher avatar Sep 18 '18 22:09 thebugcatcher

any updates?

ringofhealth avatar Dec 30 '18 03:12 ringofhealth

okay i figure it out. The param you are suppose to pass into rummage during the search is actually thigs

Rummage.Ecto.rummage(params["rummage"])

since the model looks for "rummage" key in the incoming params map.

ringofhealth avatar Jan 05 '19 23:01 ringofhealth

has this issue been resolved?

oladipo avatar Jul 25 '19 09:07 oladipo