My Rails views and controllers are littered with redirect_to, link_to, and form_for method calls. Sometimes link_to and <
redirect_to
link_to
form_for
This way works for me ok (define this method in the base class):
def self.inherited(child) child.instance_eval do alias :original_model_name :model_name def model_name Task::Base.model_name end end super end