@ohadlevy this method in puppetclasses_controller is the same methods as in hosts_controller.  I tried to delegate :to but I couldn't get it work for a controller class.  Do you know how?  The other option is to use a mixin to keep it DRY.