On Mon, Jul 26, 2010 at 19:09, Fernando Perez <[email protected]> wrote:
> 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
--
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.