Changeset 6688
- Timestamp:
- 05/06/07 05:19:02 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_view/helpers/debug_helper.rb
r6470 r6688 1 1 module ActionView 2 2 module Helpers 3 # Provides a set of methods for making it easier to locate problems.3 # Provides a set of methods for making it easier to debug Rails objects. 4 4 module DebugHelper 5 # Returns a <pre>-tag set with the +object+ dumped by YAML. Very readable way to inspect an object. 5 # Returns a <pre>-tag that has +object+ dumped by YAML. This creates a very 6 # readable way to inspect an object. 7 # 8 # ==== Example 6 9 # my_hash = {'first' => 1, 'second' => 'two', 'third' => [1,2,3]} 7 10 # debug(my_hash) 11 # 8 12 # => <pre class='debug_dump'>--- 9 13 # first: 1