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.