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

HABTM #112

Closed
yanivpr opened this issue Jul 23, 2012 · 9 comments
Closed

HABTM #112

yanivpr opened this issue Jul 23, 2012 · 9 comments

Comments

@yanivpr
Copy link

yanivpr commented Jul 23, 2012

Is habtm supported?
Having:

  1. Shop habtm Catrgories
  2. Category habtm Shops
    Can I use ransack to search Shop by a single category?
    What does the form look like?
@burlesona
Copy link

If you're searching shops a field with categories_id_in will match any. However, I have not figured out how to get ALL to work as expected.

@prikha
Copy link

prikha commented Nov 1, 2013

The issue with HTBM annoys very much. categories_id_in_all does not work. @ernie could you please drop a line on this?

@radar
Copy link
Contributor

radar commented Nov 5, 2013

@prikha If it annoys you very much then please submit a patch for it. @ernie does not have to do anything for you. This is open source software, and the maintainers of it are not for you to boss around. Anyone can improve the software whenever they feel like.

@ernie
Copy link
Contributor

ernie commented Nov 5, 2013

I ❤️ @radar.

@radar
Copy link
Contributor

radar commented Nov 5, 2013

❤️

@prikha
Copy link

prikha commented Nov 6, 2013

@radar & @ernie I'm not sure it is an issue at all - that is why i'm asking. Would be great to contribute if the issue is solvable, however i just don`t know if it is an issue at all. It seems like guys who can help defining it are really few out there.
Sry to distirb.

@radar
Copy link
Contributor

radar commented Nov 7, 2013

@prikha Best way you can find out if it's an issue is to try it and figure it out yourself. You're not dumb.

@seanlinsley
Copy link
Contributor

I'm confused what you're looking for here. I know from experience that HABTM works with Ransack, but what sort of query would categories_id_in_all generate?

@seanlinsley
Copy link
Contributor

Ahh, [1] which brought me to [2] and [3]

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

7 participants