Displaying 20 results from an estimated 3000 matches similar to: "send_file pdf problem"
2007 Mar 01
1
ActiveRecord::StatementInvalid error
When I try to run my webserver in the production environment I just
get an application error message.  This is all I can find in the log:
ActiveRecord::StatementInvalid
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/
connection_adapters/sqlite_adapter.rb:274:in `table_structure''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/
2006 Aug 16
3
problems with fastcgi, apache2 and debian sarge
Apache conf:
FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env 
RAILS_ENV=prod
uction -processes 5 -idle-timeout 60
<virtualhost 212.87.142.234:80>
        ServerName      www.gissmoh.de
        DocumentRoot    /var/www/gissmoh.de/public
        CustomLog       /var/log/apache2/gissmoh.de/access.log 
combined
        SetEnv          RAILS_ENV production
       
2006 Jun 21
7
sortable tree problem
Hello,
I''m having a problem when I set the tree option to true on Sortable.
If I set the option to false my remote call works fine, but once I set
it to true, I get some weird log errors from Webrick...
undefined method `update'' for "11":String
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in
`build_deep_hash''
2008 Feb 15
3
Ajax problem with rails 2.0.2 - frozen string?
I am deploying a new rails application on a shared host (hostingrails)
for the first time.  My local app works great.  However, Ajax requests
in the deployed application are generating the following error:
/!\ FAILSAFE /!\  Fri Feb 15 08:44:59 -0600 2008
  Status: 500 Internal Server Error
  can''t modify frozen string
    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
2008 Jun 21
5
RJS can't modify frozen string
Any ideas why RJS would start causing "can''t modify frozen string"
errors?  This was working last night and I''m not sure what could have
been changed to cause this.  The app is on a VPS not shared hosting.
/!\ FAILSAFE /!\  Fri Jun 20 20:13:37 -0700 2008
  Status: 500 Internal Server Error
  can''t modify frozen string
   
2007 Dec 29
2
needs to have method `_load'
I''m getting an exception that I''m fairless clueless about. It occurs
when I run a "create" action but neither my action or before filters
are hit before this exception. I''m hoping someone can give me a clue.
I suspect it has to do with marshalling objects in the session - maybe
TzTime is not capable of being stored in the session. I hope that''s
not the
2006 May 17
12
Help with Apache config
I have been attempting for days to configure Apache for Rails. I have 
read forums, followed How-To''s all in vain. I am hoping someone can help 
me out.  I am getting the Rails Welcome screen, but when trying to go to 
any other url, I get the 500.html message.  Take a look for yourself at 
http://66.139.78.237 and click on "about your application''s 
environment".
2006 Jan 12
2
ActionController#send_file
Looking at the code for ActionController#send_file I see that it is
using ruby to send the file contents. Linux supports a sendfile() OS
call. The implementation of Linux sendfile() is extremely fast and
very CPU efficient, far faster than what can be done in user space.
Does Windows support a sendfile() equivalent call? I haven''t been
working with ruby long enough to know how it handles
2005 Dec 13
3
send_file doesn't work with Apache?...
Hi,
I''ve been using send_file in my Rails application with
WEBrick happily to send files of various sizes and
kinds.
The same code fails to send anything but a 500 error
when run under Apache, and a log file message
"warning: syswrite for buffered IO".
Looking back through the mailing list archives I see that
there have been send_file bugs in the past.  Can some
knowledgeable
2006 Aug 08
2
send_file problem
I''m attempting to use send_file to send an image file from 
public/images.  The file is world readable.
I keep getting the following error:
A ActionController::MissingFile occurred in account#current_logo: 
Cannot read file public/images/logo.png 
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in 
`send_file''
I''ve tried supplying
2009 Mar 26
2
Deleting files after they are sent via send_file
Hello guys,
I am having the option to download certain folders on my app in zip
format. So every time a user requests one I''m doing a system call to
zip the folder (ex: system(''cd ''+path+'' && zip ...) and then the
send_file method to send it.
What happens is that I''m keeping track of disk space so I need to
delete the zip immediately. I was
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'',
         
2006 Nov 30
3
Strange send_file problem
Or perhaps I am stumbling in newbie fashion (tho I have active_merchant
and a store site basically up and running in development mode - still I
don''t feel I always understand what is going on.)
So, when I have
  send_file(filename, :type => ''application/x-zip'')
  redirect :action => index
the send_file seems to hang, rather than complete. I''m deducing
2007 Aug 27
2
send_file : downloaded file cannot be open after upload OK
I easily implemented the upload , using the ''attachment_fu'' plugin...
I can see and open the uploaded files (a pdf file 60k and a jpeg images
28k)
now I try to implement the download action in my document_controller, I
wrote :
  def download
    @document = Document.find(params[:id])
    send_file(@document.full_filename,
     :filename     => 
2006 Dec 21
6
Rails'' send_file, Mongrel, and *gasp* memory
I''ve had a right fun few days at work trying to figure out why our Rails
app (which isn''t under very heavy load) kept eating memory and bringing
our server to our knees. Eventually I traced it to send_file (which was
in a way a relief as it wasn''t down to my coding ;) -- every time a user
started downloading, the memory consumed by the app would jump, and
2007 Dec 17
2
Error in send_file
I''m trying to add a link to download a zip file.  I created a
controller method that makes the call to send_file:
def getzip
  send_file ''file.zip''
end
When I navigate to this link I get a MissingFile exception.  The file
definitely exists (and U triple-checked paths and spelling) and the
permissions are 644.  I tried moving it to the /public folder and
updating the
2006 Dec 30
2
Another RSpec on Rails issue: how to test send_file()
Hi!
Today I needed to implement some controller code, that uses send_file()
to send image data. How can this be tested / specified with RSpec?
bye,
Tobias
2006 May 14
3
send_file and locking files after download?
Hello,
I''m working on a download service which grants users a one-time-download 
access to files. The idea is to write an entry to a database table after 
a successful download that "locks" the download link for the user.
 After doing some quick tests with send_file I noticed that send_file 
does not block until the user has downloaded the full file, but proceeds 
with the
2006 Apr 17
3
help debugging an error
Hi, I''ve started getting an error I can''t debug. The error doesn''t generate
anything in my development log. A breakpoint set right at the beggining of
the controller method does not get triggered. It happens on a form
submission. I can make changes to the object model from with the console,
but not on this form submission. I thought maybe it was routing, because I
have
2008 Feb 12
3
send_file - PDF
Hi-
I''d like to load a PDF file into a page, in my controller:
send_file "/path to/my.pdf", :disposition => "inline"
However, instead of rendering inline, it asks to download the file.
How can I display the contents without downloading?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the