set up a view_method helper on a resource instance