Frederick Cheung wrote: s doesn't use CGI anymore as the interface between it and the > outside world (it uses rack instead) which probably broke that. > > Controllers have an instance method called cookies which returns a > hash like object containing your cookies. > > Fred
I see. Strange that it works on my machine locally. I regularly use rails cookie instance in my rails app. But I can't use it in a module in a file in /app/lib, right? That's why I used cgi. The thing is, before save and show I encrypt certain fields in the database using the gem fast_aes, and the key is in a cookie. In each model I use before_save and after_find. How can I get the value of that cookie without using cgi? -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.