You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classUploader < CarrierWave::Uploader::Base# Override the directory where uploaded files will be stored.defstore_dir"protected/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"endend
I used the current_path method from carrierwave. The controler code send_file @attachment.file.path wasn't getting the right path formatted the way it wanted.
I used the current_path method from carrierwave. The controler code send_file @attachment.file.path wasn't getting the right path formatted the way it wanted.
send_file @attachment.file.current_path