Displaying 20 results from an estimated 30000 matches similar to: "Ajax and Rails to manage long running server process (and file download)?"
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 May 01
1
Can I send a redirect_to() call to a periodically_call_remote() refresh?
Hi,
I''m using Rails 1.1 and the periodically_call_remote() helper to
query the server for the progress of a long running action.
I''m using the excellent new RJS partials to send a page.replace_html()
to update the status information on the page--which works very
well.
When the action completes I''m also trying to send a redirect_to()
by the same approach--which
2009 Mar 26
2
send_file using AJAX
I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file... how do I fix this?
Regards,
Sudhindra
--
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
2006 May 01
2
Can I send a redirect_to() call to a periodically_call_remote() function?...
Hi,
I''m using Rails 1.1 and the periodically_call_remote() helper to
query the server for the progress of a long running action.
I''m using the excellent new RJS partials to send a page.replace_html()
to update the status information on the page--which works very
well.
When the action completes I''m also trying to send a redirect_to()
by the same approach--which
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
Hi,
I''m developing a Rails application that (amongst other things)
lets users download media files. These files range in size
from a few kilobytes up to several gigabytes.
All this development is taking place with Rails 1.0 on a
Solaris host with Ruby 1.8.2 and Rails mode set to
"development".
I''m using the Rails send_file method to send each file with
these
2007 Sep 21
1
Using AAF with ActiveRecord outside of Rails?...
Hi,
My project has been happily using ActiveRecord outside of
Rails for some time to populate various databases that are
also used in Rails based websites.
I''d like to bring AAF into this setup to index new records
that are added to the databases as they''re added.
Has anyone had any success in installing and using AAF
with ActiveRecord but outside the Rails plugin support?
I
2007 May 22
1
acts as ferret, make index in /tmp then copy back to avoid NFS slowness?
Hi,
We''re happily using Ferret through acts_as_ferret on a Rails website,
but we have an issue with rebuilding indexes.
The Rails project directories are on an NFS mounted volume and
running Model.rebuld_index there seems to take 60-100 times longer
than it does on a local filesystem (e.g. /tmp).
What we''d like to do is rebuild our indexes in say /tmp, then copy
them back when
2006 Mar 03
0
send_file bug
I had a problem with the send_file method.
I saw that some of you had the same problem but with no real solution/explanation
first problem the :stream options, and not ''streaming'' as I see in some doc or book.
the second problem : when you set :stream to true, there''s a use of syswrite that should not be. I detailed this in response to a ticket opened by stuart
2006 Jun 29
0
Ajax Scaffold for a application started using win32-process module.
Hi,
I have an RoR application(parent) which is use to kick off other RoR
applications(ajax scaffold based).
I use win32-process Open4.popen4() to start the RoR applications.
Untill recently I was using normal scaffold feature of Rails, and recently I
migrated to Ajax Scaffold; After moving on to Ajax scaffold, when I try to
start a RoR from my parent RoR, the application do get started, when I
2005 Jul 28
1
Rails+Apache 2+FastCGI on Fedora Core 3 Linux: Has anyone got it working well?
Hi All,
I have a Rails application that needs to be served from a
Fedora Core 3 Linux server. The application runs well as a
"plain" CGI application.
My next step was to speed things up with FastCGI installed
via "gem install fcgi". (version 0.8.6.1).
That approach lead to this error in the fastcgi.crash.log:
Dispatcher failed to catch: undefined method
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 Dec 20
0
How to debug acts_as_ferret on production system?...
Hi,
I''ve been happily using acts_as_ferret on a Rails site in
development mode, but deploying to a production system causes
some errors I haven''t been able to resolve.
My production deployment setup is Apache/mongrel and I''m
sharing the index directory across each deployment version
by linking {current_path}/index to {shared_path}/index in
the Capistrano setup. Edge
2005 Aug 16
1
Best way to access constants in application_helper.rb from views?
Hi,
I''m using the application_helper.rb file to create some useful functions
for generating links by name.
I understand that functions defined in this file are available to all
views, but what about constants defined in that module? Is there a
best practice approach for doing this other than accessing each constant
via ApplicationHelper::FOO?
Stu
2007 Jun 07
6
Can't download files with send_data or send_file
I have a form_remote_tag that calls a method to print out a csv file
for download. If I tell the form_remote_tag to update a div the data
comes up in that div, but otherwise I can''t get the browser to
acknowledge the sent file.
>From view:
<%= form_remote_tag :url => {:action => "csv_dump" }%>
<%= submit_tag "Download Complete List" ,:name
2006 Dec 01
1
Simple file download doesn't work - please help!
I need to get a simple file download to work.
I want users to be able to click ''I agree'' after scrolling through a
license agreement
and the click initiates a download of some software which is in a zip
file.
I tried using send_file and had some problems I previously posted
about. So I am trying
to not use send_file. (If anyone can help me with my previous send_file
post, that
2013 Oct 11
1
One user getting: "Primary group is 0 and contains 0 supplementary groups" on standalone server
Greetings,
We are having some rights issues on Samba 3.6.18 running on Slackware64
14.0 (the official Slackware Package). One of our users is having
access issues and I believe I have traced the problem to the following
entry in the log.smbd:
Primary group is 0 and contains 0 supplementary groups
Issuing the groups command for this user returns the 8 Linux groups in
which the user has
2020 May 19
3
FTS-lucene errors : language not available for stemming
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<br>
</div>
<blockquote type="cite">
<div>
On 19/05/2020 17:18 Stuart Henderson <<a href="mailto:stu@spacehopper.org">stu@spacehopper.org</a>> wrote:
</div>
<div>
2020 May 19
0
FTS-lucene errors : language not available for stemming
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<br>
</div>
<blockquote type="cite">
<div>
On 19/05/2020 17:22 Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
</div>
<div>
<br>
</div>
<div>
<br>
2007 Aug 24
1
How to download any file using send_file() method
HI,
I am directory listing and in that listing I have certain files and sub
directories, now when I click on the files it should download that
particular file but I am not able to accomplish it, and I have got to
use send_file() method.
In the send file Code shown below I have made use of the address of one
of the files directly so when I click the link of any file it downloads
it.
THE CODE
2007 Mar 08
0
Using send_file and handling browser side cacheing
I''m using send_file to send rather large SWF files that I''d prefer the
end browser to cache to reduce my bandwidth usage.
I''ve used the method suggested by madrobby (http://mir.aculo.us/
2005/08/28/internet-explorer-and-ajax-image-caching-woes) to try to
catch the HTTP_IF_MODIFIED_SINCE request header, and then return HTTP
304 if necessary. However, this only seems to