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