Internal server error after editing environment.rb

Hi all,

this is hopefully a quick one for gurus. I edited my environment.rb
file, commenting out these lines:

config.action_controller.session = {
:session_key => ‘_test_session’,
:secret => ‘long key here’

When I browsed to my app, I got the internal server error, I immediately
reverted the changes but still get the error. I tried a different pc
and also got the error. Why is this happening and what can I do to
resolve it.

p.s. I commented out the lines as I was getting invalid authentication
token errors, when sending form data, I’m using a subdomain.

Any pointers for a ruby newb greatly appreciated,

Check your log files. “the internal server error” could be any number
of things,from a syntax error to a misconfiguration

Your authentication token problems could be because when if you make a
request to a different subdomain than the one that created the form it
probably isn’t sending the session cookie (which the authentication
token is derived from)

Sent from my iPhone

On 12 Oct 2008, at 19:52, Tom E. <rails-mailing-list@andreas-

Have you restarted the server? Any environment change will result in
an internal error, until you restart your server.

Hope that helps =)

On Oct 13, 6:11 am, Frederick C. [email protected]

Thanks for the advice. I just checked it there and it’s back up again,
I guess the host must have done a refresh. I’m using AJAX in the forms,
so maybe that is why there are issues with tokens. I’ll have to
investigate further.