jaxy_file_uploads icon indicating copy to clipboard operation
jaxy_file_uploads copied to clipboard

After_filter issue in production

Open baldwindavid opened this issue 15 years ago • 0 comments

Thank you for the plugin. I seem to be encountering some unexpected behavior upon deployment. I am uploading and returning a js response without issue in development. However, when moving to production I seem to only be able to return a js response if performing ONE of two things...

  1. Set "config.cache_classes = false" in config/environments/production.rb
  2. adding "after_filter :format_response_for_ajax_file_uploads" to application_controller.rb

So it seems that my controller may be caching without the after_filter when included. Any thoughts as to why I would be running into this issue?

Best regards, David Baldwin

baldwindavid avatar Jun 30 '09 18:06 baldwindavid