Sorry if this isn't the appropriate place to post this...
I am putting the finishing touches on a ROR app I have created for my
company's purchase order processing. There are back-end integrations
such as batch faxing using HylaFAX and e-mail notification for P.O.
processing events (initiation, completion, etc.). One of the final
hurdles I am trying to get past is creating and checking session
cookies in order to determine who is using the P.O. app. This will
determine who the faxes and e-mails will be attributed to.
Today I tried to work with the cookies method that resides under the
ActionController. I tried something simple like:
cookies["user"] = "#{@params['employee']['initials']}"
render_text "Login successful! Cookie stored as... #{cookies["user"]}"
This should look at the CGI parameter that's passed along for the
employee's initials and store them in a cookie. Problem is that nothing
is returned and the page header shows nothing in the cookie value. I am
using a default ROR 0.12.0 installation running on Apache 2.0.52 on a
Windows 2000 box. All of the features from CGI::Cookie work if I do
things the "long way", however. But the ActionController cookie method
doesn't do anything.
Is there something that I'm missing here?