<%= @session[:greeting] %>
Don’t use @session. It’s deprecated and the core folks want people
using session instead.
all of this gets me a blank screen. when i set the view to dump all
the
session data “session{}” it returns “#”
How do you “set” it to do that?
Could I suggest session.inspect
Generally speaking, blank screens frequently involve session file
issues. Try clearing your session files and trying again.
What you’re trying to do should work. Of course, session is generally
used for inter-request communications, and is not required for
controller-view communications, a pedestrian controller instance
attribute (begins with @) would work fine for that.
–
– Tom M.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.