Module ActionView::Helpers::DebugHelper
In: vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb

Provides a set of methods for making it easier to locate problems.

Methods

debug  

Public Instance methods

Returns a <pre>-tag set with the object dumped by YAML. Very readable way to inspect an object.

[Source]

    # File vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb, line 6
 6:       def debug(object)
 7:         begin
 8:           Marshal::dump(object)
 9:           "<pre class='debug_dump'>#{h(object.to_yaml).gsub("  ", "&nbsp; ")}</pre>"
10:         rescue Object => e
11:           # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback
12:           "<code class='debug_dump'>#{h(object.inspect)}</code>"
13:         end
14:       end

[Validate]