Created
October 14, 2010 19:32
-
-
Save mrrooijen/626860 to your computer and use it in GitHub Desktop.
For if you are using a Flash-based uploader like Uploadify and Rails 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Inside: config/initializers/session_store.rb | |
Rails.application.config.middleware.insert_before( | |
ActionDispatch::Session::CookieStore, | |
FlashSessionCookieMiddleware, | |
Rails.application.config.session_options[:key] | |
) |
The gem is a big win, given the number of people doing this and because most of the documentation is still dealing with Rails 2.x. Good work, just need to find more ways to get the word out so nobody else has to mess with it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I agree. The thing is that the first Middleware snippet I found on someone's blog worked. Then I opened Internet Explorer (6, 7, 8) all died because it had some issue with the AuthenticityToken. Found another snippet, modified it and that appeared to work. Now you show me this gem and I just pulled my stuff out, added the gem to the Gemfile and voila. All browsers work!
I think this gem of yours will definitely help a lot of people and save them the hassle. It certainly motivates me to use this kind of uploader more in the future! Thanks again!