You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
The text was updated successfully, but these errors were encountered: