Fernando Perez wrote:
> Hi,
> 
> When rails raises an exception which file (view?) gets rendered and
> outputs in the browser the backtrace, request, parameters, etc.
> 
> I'm asking that because I'd like to know if Rails provides an easy way
> to convert a hash to a readable string, eg:
> 
> "{:key => 'value'}" instead of yukky #to_s which gives "keyvalue".

Are you looking for something like p or inspect ?

> 
> 
> Thanks

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to