require "#{File.dirname(__FILE__)}/abstract_note" module Footnotes module Notes class ParamsNote < AbstractNote def initialize(controller) @params = controller.params.symbolize_keys end def title "Params (#{@params.length})" end def content mount_table_for_hash(@params, :summary => "Debug information for #{title}") end end end end