Print out session dump?

How can I go about printing out an object in Ruby? I’m looking for the
print_r php equivalent. All I’m trying to do is print out session
information. It is exactly what is shown in “Show session dump” when an
exception is caught. Any ideas? Thanks.

View this message in context:
http://www.nabble.com/Print+out+session+dump--t1712872.html#a4651059
Sent from the RubyOnRails Users forum at Nabble.com.

Wuher wrote:

How can I go about printing out an object in Ruby? I’m looking for the
print_r php equivalent. All I’m trying to do is print out session
information. It is exactly what is shown in “Show session dump” when an
exception is caught. Any ideas? Thanks.

logger.info session.inspect

It’s ugly but the information is all there.

  • Danny

On May 31, 2006, at 1:21 PM, Wuher wrote:

Sent from the RubyOnRails Users forum at Nabble.com.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

<%= debug session %>

-Ezra

<%= debug session %>

Well I’ll be damned…that’s what I love about these forums. Even when
you think you know the answer, you find out there’s more to learn.

Thanks!

  • Danny