Ruby on Rails Discussions
pretty-printing (or otherwise) a hash in a view template
rubyonrails-talk
James_Moore1
(James Moore)
October 29, 2007, 8:29pm
1
Give to_yaml a shot. It's a very readable way to dump ruby objects.
Related topics
Topic
Replies
Views
Activity
to_hash
rubyonrails-talk
0
99
December 28, 2009
How do I format the output showing Rails objects
rubyonrails-talk
6
2899
November 5, 2022
A waste of rhtml
rubyonrails-talk
0
92
February 14, 2007
Default rendered error file and hash to nice string how to
rubyonrails-talk
5
119
August 16, 2010
Suggestion to add "pluck_to_hash" method
rubyonrails-core
0
194
September 11, 2014