Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctionClauseError error #80

Open
hlongvu opened this issue Sep 13, 2018 · 5 comments
Open

FunctionClauseError error #80

hlongvu opened this issue Sep 13, 2018 · 5 comments

Comments

@hlongvu
Copy link

hlongvu commented Sep 13, 2018

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

@chevinbrown
Copy link

Same issue for me.

@thebugcatcher
Copy link
Contributor

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.

@ringofhealth
Copy link

any updates?

@ringofhealth
Copy link

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.

@oladipo
Copy link

oladipo commented Jul 25, 2019

has this issue been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants