similar to: PaperClip StorageMethodNotFound (Cannot found filesystem)

Displaying 20 results from an estimated 10000 matches similar to: "PaperClip StorageMethodNotFound (Cannot found filesystem)"

2010 Dec 05
0
Rails - Using Tempfile to write on Heroku?
Hello, I need to be able to write a temporary file for use during the request only. Locally I can use the following successfully: tempfile = File.open(a.original_filename,''w'') tempfile.write_nonblock(a.body) paperclip stuff........ tempfile.close That works great, but not on Heroku... How can I do the above with Heroku''s restrictions:
2013 Apr 18
1
Missing :bucket option (S3), while it is defined in production initializers.
I got my S3 credentials defined in my production.rb, linkwise to this heroku post <https://devcenter.heroku.com/articles/paperclip-s3>. However when I''m testing it on Heroku, I get this error in my logs: "ArgumentError (missing required :bucket option)". What could be wrong? -- You received this message because you are subscribed to the Google Groups "Ruby on
2011 Aug 13
1
Paperclip - could not find generator.
Hello there, I installed plugin "paperclip" for working with images, but after running a command -- rails generate paperclip user avatar I am getting error -- Could not find generator paperclip. If I will try run a command -- bundle show paperclip So I will get -- /Library/Ruby/Gems/1.8/gems/paperclip-2.3.0 In Gemfile I have -- gem "paperclip", "~> 2.3" I
2010 Aug 22
0
Paperclip - possible to modify file and load file content as string?
Wanted to see if anyone knows of a way - or the preferred way - to do these three tasks with Paperclip: 1) Access the content of an uploaded file before save. I did find that the following works before save, but is there a clearer way to do this: self.uploaded_file.queued_for_write[:original].open.read 2) Access the content of a file after save while my AR model instance is still alive and/or
2012 Jan 25
0
Paperclip preserve files ?
Hi, I am using paperclip to upload files. The problem I am facing is, based on my object property I need to preserve my file. Means my object should be deleted from db but the file need to be restored. I am using the option :preserve_files => true. If I keep the above option in model it will be access to all the objects of the model. I need to restore only for limited objects.
2011 Feb 15
0
Question on Paperclip paths/urls
Note that if I use the default Paperclip :path (i.e. not setting this attribute and files going to public/system), everything is fine. This question is to do with setting an alternative path. I have a model using paperclip for a file with a custom path: has_attached_file :tu_raw_bill_csv, :path =>
2010 May 13
0
Rails 3, Paperclip and checking out particular revisions
Hey, got a weird one. I''ve been playing with a couple of Rails 3 apps and today I have broken both. Seemingly by updating my paperclip gem. Gemfile ..... gem ''paperclip'', :git => ''git://github.com/thoughtbot/paperclip.git'', :branch => ''rails3'' It appears the latest version of paperclip or at least in the branch has broken in
2011 Mar 08
0
keep getting an error, "rescue in load_missing_constant': uninitialized constant Paperclip::Glue (NameError)"
hi, there rails: 2.3.8 machine os: Ubuntu 10.04 Lucid I''m having some problems with my rails installation in one of my new development machines. I have installed all the gems in my config/environment.rb file. When I now run either script/console or script/server, I have the error of " `rescue in load_missing_constant'': uninitialized constant Paperclip::Glue
2012 Jul 11
0
Paperclip duplicates uploaded images
Hi, I''m using rails3 with paperclip to upload multiple images as in http://www.emersonlackey.com/article/paperclip-with-rails-3 The problem is, every image is duplicated upon create/update, that is, saved twice to the db (and afterwards displayed twice in the view as a result) In other pages, and even in the same page as well, I also have a single upload file, which works fine. As
2010 Nov 02
0
Can't use paperclip plugins
development env: Ubuntu 9.04 ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] rails -v Rails 3.0.0 gem -v 1.3.7 Here what I did: rails new testpaperclip -d mysql cd testpaperclip rake db:create rails g scaffold user name:string address:string rake db:migrate == CreateUsers: migrating ==================================================== -- create_table(:users) ->
2013 Sep 04
2
Speed up image processing of Paperclip in Acceptance Tests
Hi All, I have a question here: How to Speed up image processing of Paperclip in Acceptance Tests When running capybara feature specs I can see lots of Slow factory notices which are populated byfactory_girl. These Slow factory things heavy slow down the feature specs, I think, even feature specs are intrinsic slow specs. Then I had some inspect and found out most of the Slow factory was
2014 Mar 26
0
Heroku | Rails 4 | Ruby 2.0 - send_file not presenting file for download in the browser
Hello all, I am have an app that is hosted on heroku (rails 4 | ruby 2.0) that I am using paperclip-dropbox to upload attachments to a blog. I have created a download link for people who read the blog to be able to download the attachments but I am not able to get the file to actually download via the browser. I am curious if anyone knows what could be the issue. My process is I download the
2010 Aug 06
4
Paperclip not finding imagemagick on prod, works on dev
Hi, I am using paperclip to attach documents to my models. it works perfectly on my dev machine, but on the server I get a CommandNotFoundError. On my server if I ./script/console I can run imagemagick through system("convert") and it works, so why can''t paperclip find it? Thanks for your ideas PS: the paperclip google group isn''t getting much answers so I am
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks, I have a simple model hierarchy (reduced to example as below) class Post < ActiveRecord::Base has_many :comments end class Comment < ActiveRecord::Base belongs_to :post has_attached_file :photo, # :url => "/assets/class_cal/<original post date>/:id/:style/:basename.:extension" :url =>
2010 Sep 01
1
Faking Paperclip has_attached_file with Factory girl?
Hello! I wonder if it''s possible to simulate Paperclip''s has_attached_file with Factory Girl and then test it with Rspec. I don''t get it to work. My factories.rb file looks like this: Factory.define :user do |user| user.name "Anders" user.email "user-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org" user.password
2011 Feb 15
0
paperclip unit files created during tests left on system
I have a rails 3.0.3 app that uses paperclip (2.3.8) to store files on s3 using the s3 gem. In my units tests I''m using the local file system and I have noticed that the files are left on the system after the tests have run. Looking at the logs I could see that the destroy method was never called on the model with the attachment. I added a teardown method that explicitly made the destroy
2011 Jun 03
0
valums ajax file upload + paperclip in Rails 2.x Options
Hello all, I am trying to setup ajax file upload + ajax display in Rails 2.0.2 for project specific purposes. I am using valums ajax file upload plugin(https://github.com/valums/file-uploader). Using this plugin, I have been able to upload these files working in my javascript and I am able to pass them as params. I have found a blog in which they have shown how to combine this plugin with
2010 Mar 15
0
Configuring Paperclip on windows...
I''ve been banging my head against rails in the last couple of days trying to get paperclip to work in windows. I have ImageMagick working. I have RMagick working (and tested it on rails). I even configured paperclip to have the correct path to identity.exe, however I keep getting an error that identity cannot be executed. --Dmitriy -- You received this message because you are
2010 Feb 26
2
Routing Error using Paperclip
For some reason I can''t figure out why I am getting a routing error when I add Paperclip support. I have another test app when similar code is working. I created a new test app first without Paperclip support and it was doing the CRUD operation fine. However when I added Paperclip support I get the following error? Routing Error user_url failed to generate from
2012 Mar 20
4
Multiple Paperclip Images on Index
Hi, I am working on a project that is using Paperclip to upload multiple images to an Asset model. my Post model has_many Assets. As per this tutorial/screencast... https://github.com/Emerson/Multiple-File-Uploads-with-Paperclip-and-Rails-3/blob/master/app/views/posts/show.html.erb"> http://www.emersonlackey.com/article/paperclip-with-rails-3> This all works fine and I can