Forum: Ruby on Rails Internal server error after editing environment.rb

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tom E. (Guest)
on 2008-10-12 22:52
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,
thanks
T
Frederick C. (Guest)
on 2008-10-12 23:12
(Received via mailing list)
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-
torm3nt (Guest)
on 2008-10-13 11:34
(Received via mailing list)
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. <removed_email_address@domain.invalid>
Tom E. (Guest)
on 2008-10-13 22:28
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.
This topic is locked and can not be replied to.