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
Using Dropbox as a storage with CarrierWave I'm trying to add a crop funtionality but when I try to update the attachment to upload I get
undefined method `read' for #CarrierWave::Storage::Dropbox::File:0x007ff74d572528
when trying to use recreate_versions! on the uploader, as far as I've gathered the problem is that the class CarrierWave::Storage::Dropbox::File does not have the methods from the Carrierwave base needed to run recreate_versions!
is this a bug? or is it a feature that was never done?
Below I have every relevant file, hope someone can give me a pointer.
<h1>CropAvatar</h1><%= image_tag @observation.attachment_url, id: "cropbox" %><h4>Preview</h4>
<divstyle="width:100px; height:100px; overflow:hidden">
<%= image_tag@observation.attachment_url,:id=>"preview"%></div>
<%= form_for@observationdo |f| %> <% %w[x y w h].each do |attribute| %>
<%= f.text_field"crop_#{attribute}"%> <% end %>
<divclass="actions">
<%= f.submit"Crop"%> </div>
<% end %>
source'https://rubygems.org'git_source(:github)do |repo_name|
repo_name="#{repo_name}/#{repo_name}"unlessrepo_name.include?("/")"https://github.com/#{repo_name}.git"endgem'sqlite3'# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'gem'rails','~> 5.0.2'# Use sqlite3 as the database for Active Recordgem"mysql2","~> 0.4.5"# Use Puma as the app servergem'puma','~> 3.0'# Use SCSS for stylesheetsgem'sass-rails','~> 5.0'gem'bootstrap-sass','~> 3.3.6'# Use Uglifier as compressor for JavaScript assetsgem'uglifier','>= 1.3.0'# Use CoffeeScript for .coffee assets and viewsgem'coffee-rails','~> 4.2'# See https://github.com/rails/execjs#readme for more supported runtimesgem'therubyracer',platforms: :ruby# Use jquery as the JavaScript librarygem'jquery-rails'gem"twitter-bootstrap-rails"# bundle exec rake doc:rails generates the API under doc/api.gem'sdoc','~> 0.4.0',group: :docgem'rails_admin','~> 1.1.1'gem'rails_admin_material'gem'carrierwave'gem'carrierwave-dropbox'gem'rmagick'# Use ActiveModel has_secure_password# gem 'bcrypt', '~> 3.1.7'# Use Unicorn as the app server# gem 'unicorn'# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinksgem'turbolinks','~> 5'# Build JSON APIs with ease. Read more: https://github.com/rails/jbuildergem'jbuilder','~> 2.5'# Use Redis adapter to run Action Cable in production# gem 'redis', '~> 3.0'# Use ActiveModel has_secure_password# gem 'bcrypt', '~> 3.1.7'# Use Capistrano for deployment# gem 'capistrano-rails', group: :developmentgroup:development,:testdo# Call 'byebug' anywhere in the code to stop execution and get a debugger consolegem'byebug',platform: :mriendgroup:developmentdo# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.gem'web-console','>= 3.3.0'gem'listen','~> 3.0.5'# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/springgem'spring'gem'spring-watcher-listen','~> 2.0.0'end# Windows does not include zoneinfo files, so bundle the tzinfo-data gemgem'tzinfo-data',platforms: [:mingw,:mswin,:x64_mingw,:jruby]
Using Dropbox as a storage with CarrierWave I'm trying to add a crop funtionality but when I try to update the attachment to upload I get
undefined method `read' for #CarrierWave::Storage::Dropbox::File:0x007ff74d572528
when trying to use recreate_versions! on the uploader, as far as I've gathered the problem is that the class CarrierWave::Storage::Dropbox::File does not have the methods from the Carrierwave base needed to run recreate_versions!
is this a bug? or is it a feature that was never done?
Below I have every relevant file, hope someone can give me a pointer.
Thanks
The text was updated successfully, but these errors were encountered: