How to search in rails from two models? -


i have 2 models lcities , lservices

class lcity < activerecord::base  has_many :lservices attr_accessible  :lname , :lcode , :lexperience , :lrating , :llocation end 

and

class lservice < activerecord::base belongs_to :lcity    attr_accessible  :lcode , :lscode , :lcharg , :lname end 

i want data searching on llocation of lcities , lname of lservice


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -