Skip to content

Instantly share code, notes, and snippets.

@nesquena
Created May 17, 2011 23:53
Show Gist options
  • Save nesquena/977690 to your computer and use it in GitHub Desktop.
Save nesquena/977690 to your computer and use it in GitHub Desktop.
Padrino session snippet
# config/apps.rb
Padrino.configure_apps do
enable :sessions
# $ padrino rake gen
# $ rake secret
set :session_secret, "long secret key pasted here"
end
@nesquena
Copy link
Author

If you are having issues with sessions, upgrade to Padrino 0.9.28 and use this gist to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment