Document the Secret Key configuration a bit

This commit is contained in:
Jacques Distler 2007-12-24 17:18:30 -06:00
parent e74deb0cfb
commit a0cf0951af

View file

@ -8,7 +8,17 @@ Rails::Initializer.run do |config|
generator = Rails::SecretKeyGenerator.new("Instiki")
config.action_controller.session = {
:session_key => "instiki_session",
#####
### This one generates a secret key automatically at launch.
### advantage: secure, no configuration necessary
### disadvantage: restart the server, and all existing
### session keys become invalid.
:secret => generator.generate_secret
###
### Alternatively, you can set your own unchanging secret key
### by editing and then uncommenting the following line, instead:
# : secret => "a_very_long_string_of_random_letter_and_numbers"
#####
}
# Skip frameworks you're not going to use