views:

17

answers:

2

This is a really simple question and despite multiple Google searches I cannot find the relevant one-line command. What do we enter in view.html.erb to show all the contents of the current session?

+1  A: 

<%= session.inspect %>

Jed Schneider
Thanks a lot Jed!
sscirrus
inspect works almost anywhere to get more info than you to_s is giving you. I use it all the time
Jed Schneider
A: 

To those reading, I found another answer that also seems to work: <%= debug session %>

sscirrus