質問

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