similar to: Rails - Using Tempfile to write on Heroku?

Displaying 20 results from an estimated 6000 matches similar to: "Rails - Using Tempfile to write on Heroku?"

2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my mistakes, this time I''m trying to upload 2 files from a form for later processing, however, after I hit the "Submit" button. I keep getting this error: TypeError in UploadFilesController#create app/controllers/upload_files_controller.rb:28:in `new''
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
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart` from a Heroku application to Facebook. I have the following JSON object: {"message"=>"My message", "image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490 @original_filename="neEZYMAnBI.jpg", @content_type="application/octet-stream",
2011 Sep 13
1
Heroku failed to push: fatal: sha1 file '<stdout>' write error: Invalid argument
When I try to push my app to Heroku I get this error: OCA@OCA-PC /c/rails/oca (master) $ git push heroku master Enter passphrase for key ''/c/Users/OCA/.ssh/id_rsa'': Counting objects: 913, done. Delta compression using up to 2 threads. Compressing objects: 100% (797/797), done. Read from remote host heroku.com: Connection reset by peer fatal: sha1 file
2010 Nov 16
0
heroku not working /heroku/commands/pgbackups.rb:9:in `<class:Pgbackups>': uninitialized constant He
Hi! If i tipe heroku in console i become this: ~onemore~>heroku /home/koli/.rvm/gems/ruby-1.9.2-p0@onemore/gems/heroku-1.13.1/lib/heroku/commands/pgbackups.rb:9:in `<class:Pgbackups>'': uninitialized constant Heroku::Command::Pgbackups::Help (NameError) from /home/koli/.rvm/gems/ruby-1.9.2-p0@onemore/gems/heroku-1.13.1/lib/heroku/commands/pgbackups.rb:6:in
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below this is ma controlller method to upload def save_imports Contactslist.save(params[:list]) render :text => "File uploaded successfully" this is ma view file .remote - form_for(@list, :url=> save_imports_list_path(@list, :format => "js"), :html => { :multipart => true,
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
Hello I''m looking to learn how to redirect all non-www (mysite.com) to https://www.mysite.com I tried the following: class ApplicationController < ActionController::Base before_filter :check_uri def check_uri redirect_to request.protocol + "www." + request.host_with_port + request.request_uri if !/^www/.match(request.host) if Rails.env ==
2009 Sep 11
4
heroku gem and two different heroku accounts
Heroku support works so slowly I want to ask community. 1)I have a problem with switching between my two heroku accounts on the same laptop. All of the commands execute from one of these, but I want to execute it from another. Howto switch user to another heroku account? 2) how to treat my ubuntu to default for the heroku.com? -- Posted via http://www.ruby-forum.com/.
2013 May 25
1
Mysterious Application Error on Heroku
I converted my app to rails 4. My test suite is green and it runs great locally. I then deploy to Heroku and it crashed with no information at all. It just says "Application Error. An error occurred in the application and your page could not be served" Heroku logs don''t give any info either: -------------------------------------------------------------
2010 Oct 01
20
Paperclip not executing FFMPEG properly
Im using a customs processor to run ffmpeg on a video to create a thumbnail. So far so good. Except when I do: cmd = "-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv" success = Paperclip.run(''ffmpeg'', cmd) Console is reporting: ffmpeg ''-i /var/folders/uL/uL0bYOOZEZaJH5E+BmDJVE+++TI/-Tmp-/stream, 16824,1.mpeg -f flv -s 320x240
2009 Apr 16
6
Using Paperclip::Processor and RMagick to sharpen my thumbnails
Hi, I''m brand new to RMagick (and pretty new to Rails for that matter!). Right now, site owners are allowed to upload product and ingredient photos to the website. Everything works great, ingredients are sized down and proportioned correctly...the problem is that the resulting images are so blurry! So I''ve been doing some research and it looks like Paperclip::Processor may be the
2010 Sep 01
0
PaperClip StorageMethodNotFound (Cannot found filesystem)
Hello , i have an issue with paperclip . when i a working on windows its works fine when i Go on Fedora Or heroku It gives Error PaperClip StorageMethodNotFound (Cannot found filesystem) : ..................... ..................... ..................... ..................... is this works for me
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
2012 Sep 10
0
Tips: workarounds to do free full-text search on Heroku :-)
Recently I started a new side-project, using some full-text search done with Solr, intending to put it on Heroku. However, I had forgotten that Heroku doesn''t allow any Solr for free! So I ripped it out and looked for alternatives, winding up with pg_search. I ran up against some problems, but figured out some workarounds, and wrote them up in a two-part blog post:
2012 Apr 07
0
RAILS HIGHCHART HEROKU PRODUCTION illegal character
HI am using Highchart on rails on heroku. View Source of : http://localhost:3000/highchart RAILS_ENV=production series: [{name: "Restaurants",pointInterval: 86400000,pointStart: 1207526400000,data: [[1325462400000, 4], [1325462400000, 5], [1325462400000, 3], [1328140800000, 5], [1328140800000, 3], [1328140800000, 4], [1330646400000, 3], View Source of :
2012 Oct 05
2
heroku rake db:drop error PG::Error: FATAL: permission denied for database "postgres"
How to empty DB in heroku<http://stackoverflow.com/questions/4820549/how-to-empty-db-in-heroku> I have a Postgres database on Heroku. It is one of the free beta ones. Locally, when testing, I often run rake db:drop && rake db:create && rake db:migrate as a way to reset the database. However, when I try to run this on Heroku, I get the error:\[code\]Couldn''t drop
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
Hi all, I''m needing to extend the Paperclip Storage module to handle external URL''s so that I can upload my doc''s/images to an external source rather than the app''s local file system. The FileSystem module reads module Filesystem def self.extended base end def exists?(style = default_style) if original_filename
2011 Jun 01
1
git push heroku master - has error
I am trying to put my app on heroku, following the instructions, when I get here I get this error: $ git push heroku master Enter passphrase for key ''/c/Users/Laurence/.ssh/id_rsa'': Counting objects: 277, done. Delta compression using up to 2 threads. Compressing objects: 100% (246/246), done. Read from remote host heroku.com: The connection was aborted fatal: sha1 file
2011 Sep 30
1
RoR running on Localhost but not on Heroku
Hey there, I have been following http://ruby.railstutorial.org/chapters/beginning#top since yesterday and I am going good on my machine with ROR. I have used RailsInstaller for my environment on Windows7. My two apps are working good on my localhost:3000 but as I put them into Heroku, I am getting error, respectively, http://meinkampf.heroku.com and http://smoothipod.heroku.com. I wonder
2012 Jan 25
0
Can't Get Caching to Work with Heroku and Memcache
I''m on Heroku and trying to implement caching in my Rails app, but I''m running into some problems that I don''t understand. I thought it would be easy after reading the Rails Guide and Heroku docs on caching strategies, but apparently doing something wrong. Issue 1: view of action doesn''t seem to expire Issue 2: when I use :layout => false, both my admin