Isnor Creative
Isnor Creative Blog
Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue

Jun 14, 2011

Ruby on Rails Uploadify 2.3.11 Flash Session Cookie Middleware

A recent update to Rails 2.3.11 broke our Uploadify setup. This is what finally solved the problem for me:

config/environment.rb (or for Redmine, this can go in config/additional_environment.rb):

config.middleware.insert_before("ActionController::Session::CookieStore", "FlashSessionCookieMiddleware")

app/middleware/flash_session_cookie_middleware.rb:

JavaScript:

In the section of your layout:

<% csrf_meta_tag %>


I am available for Ruby on Rails consulting work – get in touch to learn more.

Gordon B. Isnor

Gordon B. Isnor writes about Ruby on Rails, Ember.js, Elm, Elixir, Phoenix, React, Vue and the web.
If you enjoyed this article, you may be interested in the occasional newsletter.

I am now available for project work. I have availability to build greenfield sites and applications, to maintain and update/upgrade existing applications, team augmentation. I offer website/web application assessment packages that can help with SEO/security/performance/accessibility and best practices. Let’s talk

comments powered by Disqus