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

Searchlogic with nested elements. #149

Open
geektoo opened this issue Sep 5, 2011 · 0 comments
Open

Searchlogic with nested elements. #149

geektoo opened this issue Sep 5, 2011 · 0 comments

Comments

@geektoo
Copy link

geektoo commented Sep 5, 2011

Hello,
I need your help with my search method.
I use search logic to manage filter. thats works. except the problem i have is to search between models.

my models are :
Company has many departments
departmanets has many employes.

I'm able to search company and departements. but how to search in the three models?

here is my gist of my setup
https://gist.github.com/1195685

i tried my employe model to have a has_many :company, :through => :departments but nothing changed.

what i can do to use the employes models in my sql request?

thanks

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

1 participant