similar to: Downloading files not stored in database?

Displaying 20 results from an estimated 6000 matches similar to: "Downloading files not stored in database?"

2011 Jun 12
3
Problem with undefined variable current_user
Hi everyone, I''m working through the tutorial at the following link and attempting to customise/adapt the lessons for my own slightly different application. Link: Ruby on Rails Tutorial: Learn Rails by Example | Ruby on Rails 3 Tutorial book and screencasts | by Michael Hartl <http://ruby.railstutorial.org/ruby-on-rails-tutorial-book> I''m currently trying to work
2011 Aug 17
3
file uploading controller
how to upload a video,document and a audio (of any format) within the same controller and within the same form? is it possible to do that? if not then what is the solution? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2011 May 17
2
Can't dump File ... when uploading files
I am getting this error on the redirect_to command ... I am using Rails 3 w Paperclip to upload files ( but I tried also CarrierWave .. same error) I tried to change the session store from cookie-based to database .. same error I tried to delete the params content ... I don''t know what to try next .. any clue ? thanks erwin -- You received this message because you are subscribed to
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 Sep 29
4
Best image upload plugin?
Hey everyone, I''ve been dealing with Rails 3, Paperclip and Windows 7 for a few nights now and don''t feel like I''m actually getting anywhere. I''ve hit config issue after config issue and it''s a bit of a nightmare. Can anyone recommend any other gems that will accomplish the same thing? Thanks, Brandon -- Posted via http://www.ruby-forum.com/. --
2011 Jan 07
1
Task with a legacy schema nightmare.
I have a the great task of migrating the backend of a large multi client application to Rails! I''m pumped for the opportunity to drop PHP, but a LOT of table schemas have a very "non-rails" setup. The main hangup is any image urls for the site live in a large monolithic table with a column to designate the other tables name and it''s primary key that has an image.
2011 Aug 27
5
image override*
Hi Team, I have create one ruby on rails application ,i have one issue for that image upload ,the image will override the some user , so any can solve the issues ************************ contoller class PhotosController < ApplicationController # GET /photos # GET /photos.xml def index @photos = Photo.all respond_to do |format| format.html # index.html.erb
2011 Feb 27
1
Carrierwave vs paperclip vs attachment_fu ??
I need to upload not only images but also other files(excel, pdf''s), I would like to setup custom validations for the specific file uploaded(size, format) and I am using rails 3 Any recommendations would be greatly appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2011 Sep 08
10
Image upload with progress bar
Hello there, I try already third day to find a way, how to improve my upload about progress bar. I use for upload of images the paperclip gem and in my app jQuery library. Could anyone give me, please, any help or tip, how to do? I tried to search, read a discussions, but I still don''t know, how to do... So, thank you so much for every advice. -- Posted via
2008 Oct 26
2
use Prawn to generate pdf
Hello: when i use Prawn to generate pdf file for download, i got a blank pdf file, can someone tell me why? require ''prawn'' class DownloadController < ApplicationController def download_pdf send_data(generate_pdf, :filename => ''test.pdf'', :type => ''application/pdf'') end private def generate_pdf
2012 Aug 29
2
Carrierwave Direct and additional form elements
I just switched a project from Dragonfly to Carrierwave, specifically to see if I could take advantage of Carrierwave Direct, which uploads large files directly to S3 or another cloud storage. I was able to make a form containing a single file field that would upload to S3. What I could not work out was how to upload the file to S3 AND other form elements to the model that had Carrierwave
2020 Aug 09
3
multiple vms with same PCI passthrough
In attempting to isolate vfio-pci problems between two different guest instances, the creation of a second guest (with existing guest shutdown) resulted in:. Aug 09 12:43:23 grit libvirtd[6716]: internal error: Device 0000:01:00.3 is already in use Aug 09 12:43:23 grit libvirtd[6716]: internal error: Device 0000:01:00.3 is already in use Aug 09 12:43:23 grit libvirtd[6716]: Failed to allocate PCI
2011 Mar 11
8
Help Regarding Amazon S3 and Career Wave along with Rspec
hello Guys, i would like to know some details regarding how to implement AMAZON S3 with Career Wave in Rails 3.0.3 and i have to write Rspec test Cases as well . Actually i already have code which is implemented with Career Wave its a image uploading code and i need to change that code on AMAZON S3. Can you guys help to me to make those changes and in writing RSpec test Cases.Its really important
2011 Aug 19
2
Scanning a document through scanner using ROR
Hi everyone, After a long back I am again using ROR,Could you please anyone can help me how to invoke the client side resources such as scanners and printers using ROR? Actual requirement is the user scans a document(containing 10 to 100 pages) in his client machine(here the whole document should be in one file like pdf or tif, not individual files) and the preview the document to be shown for
2020 Aug 18
2
Re: multiple vms with same PCI passthrough
Thanks Laine, Mea Culpa, Couldn't reproduce, or found the multiple duplicate entries in the guest pci domain/bus/slot/function space which got resolved easily. [root@grit tmp]# virsh list Id Name State -------------------- [root@grit tmp]# virsh list --all Id Name State ------------------------------ - openbsd6.7 shut off - openindiana shut off -
2011 Apr 21
2
Rails 2.3.11 and carrierwave, can't find generator
I added carrierwave to a 2.3.11 app that I have updated with Bundler. I just tried to use the following: script/generate uploader Avatar The following error is coming back: NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01. Gem.cache called from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/ rails_generator/lookup.rb:234 . Couldn''t find
2011 Dec 29
1
rmagick and imagemagick
I am having issues loading imagemagick and rmagick on webfaction. I have installed a rails app called balder that organizes images. my main problem is that i can''t seem to upoload the image sthrough balder. balder uses imagemagick and rmagick when i use the console and do this: irb(main):003:0> require ''RMagick'' => nil I don''t think rmagick is
2007 Aug 27
1
Send_file() method for downloading any file
HI, I need to know how to download any file using send_file() method.The code I have shown below is for a specific file........how ever I need it for any file. THE CODE ........ def download_files send_file(''D:/hr/Handbook.doc'', :filename => params[:filename] , :type => ''application/octet-stream'',
2010 Nov 07
2
Hooks before a scenario but not the background: possible or bad practice
Hi, I''d like to activate FakeFS for some scenarios, which I tag @fakefs, however it seems Before(''@fakefs'') runs before the background of the feature - unfortunately this clobbers Grit, and I can''t Grit::Repo.new(...) in the backbround. Is it currently possible to get a hook to run before a scenario, but not the Background of the feature? Or am I mistaken in
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there, I posted this issue <https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at the carrierwave-group, but I''m beginning to think this rather is a rails-issue than a problem with carrierwave. The problem''s this: I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my article_controller i