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".
Thanks
--
Posted via http://www.ruby-forum.com/.
> 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".
Maybe you can override to_s?
-Dave
--
Specialization is for insects. -RAH | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog: http://dare2xl.com | Play: http://davearonson.net
Are you looking for something like p or inspect ?
>
>
> Thanks
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
Damn' it! I completely forgot about Hash#inspect! Thanks Marnen :)
So check for File values. What's the problem?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org