문제

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