class Foo < Merb::Controller def _template_location(action, type = nil, controller = controller_name) controller == "layout" ? "layout.#{action}.#{type}" : "#{action}.#{type}" end def index "Hello" end def foo render end end