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

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

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