Chris@0: module RenderInformation Chris@0: def render_class_and_action(note = nil, options={}) Chris@0: text = "rendered in #{self.class.name}##{params[:action]}" Chris@0: text += " (#{note})" unless note.nil? Chris@0: render options.update(:text => text) Chris@0: end Chris@0: end