search for: list_by_service

Displaying 1 result from an estimated 1 matches for "list_by_service".

2006 Feb 27
1
Models and Inheritance
...lass. Company < ActiveRecord::Base has_belongs_to_many :services end Serviceprovidertype1 < Company Serviceprovidertype2 < Company These child classes have corresponding child controllers Serviceprovidertype1Controller < CompanyController in the parent I have a method protected list_by_service(service) Company.find_by_sql(.. + service + ...) end and in the child Serviceprovidertype1Controller list list_by_service(''Servicetype'') end but it only seems to work if I make the method in the parent a class method ie Company.list_by_service(service) I don''t u...