Billy Hsu wrote:
> maybe you can save object to session and send a flag to get the object?

Thanks a lot for the hint. The idea seems very nice. However, I can't 
get it working. I'm using the Facebooker plugin, maybe it messes up with 
sessions.

in my index method of the main controller, I create the session 
variable:
session[:me] = @me

then in another method I try to use print it's contents:
print "\n" + session[:me].account_id.to_s

However, I get an error: "You have a nil object when you didn't expect 
it!"

So the variable is not preserved in the session. Am I doing something 
wrong with storing/retrieving the session objects?

Thanks again!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to