I’m using carrier wave gem in a redmine plugin. But it’s not working as it works in a simple rails app. For example my uploader class is My Uploaders directory contains the file_uploader.rb file which has the following code.

    class FileUploader < CarrierWave::Uploader::Base
     storage :file

     def store_dir "boxelements/#{model.class.to_s.underscore}/#{model.id}/#{mounted_as}"
     end
    end

Should I change the code in order to make it work? Can anyone please tell me why it’s not working as a red mine plugin?

有帮助吗?

解决方案

Please move the “Uploaders” directory into the main app directory of the redmine.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top