similar to: set response headers from controller?

Displaying 20 results from an estimated 60000 matches similar to: "set response headers from controller?"

2006 Mar 09
6
[Prototype] Ajax.Request include form fields?
Hi, Is it possible to submit my form (or part of my form) with an ajax request? I had been using dojo to do this, but having just read up on the prototype library, I think I''d rather use prototype. The one thing I don''t see (maybe I''m just missing it) is the ability to submit my form (actually just parse through an element and include all inputs as request parameters)
2006 Mar 08
4
order.products << product w/out persisting
Hi, I have a one-to-many relationship. I want to be able to add objects to the collection w/out persisting them. How do I do this? The only thing I can''t think of is to use a transaction and roll it back. In other words - I want to do this: o = Order.find(1) p = Product.find(1) o.products << p # but don''t persist this I assume I''m just missing something
2006 Feb 17
2
Set HTTP headers on response?
Is it possible to set HTTP headers for a response? Seeing as you can access the headers using the request.env["FOO"] I am wondering if there is an equivalent response.env["BAR"], this is a wild guess and I have seen no documentation to back it up. Has anyone managed to do this somehow? Thanks Jeff -- Posted via http://www.ruby-forum.com/.
2009 Jun 08
2
How to add these headers to a xml response
Hi, I need to create something like this: <?xml version="1.0" encoding="UTF-8"?> <Container> <id>aQlfVHX+qPM</id> <lifetime>2009-09-19T08:14:55Z</lifetime> </Container> The response should contain the next headers: Content-Type=`application/vnd.3gpp+xml`
2012 Apr 30
3
way to get response headers only?
Hello, I''m interested in grabbing the final uri of a given uri after any redirects without retrieving the response body of this final uri. For example, if uri1 redirects to uri2, which in turn redirects to uri3, I''d like to just grab the response header of uri3. I know that I can get the full response (header and body) by doing Mechanize.new.get(uri1).uri, but again,
2012 May 30
2
Sorting a data set
I am a novice user of R and am stumbling on how to order a dataset produced during my session. I have a 1863 row X 14 column dataset that I want to put out to a file. I want the output sorted by the first column and then by the second column both in ascending order. The first column is character and the second is numeric (I hope). I used an "as.numeric" function to assign that
2006 Aug 07
2
.rjs not run unless I manually set the Content-type header
I''ve got this is my controller def destroy @headers[''Content-Type''] = ''text/javascript; charset=utf-8'' end and this in my .rjs file called destroy.rjs page.alert(''test'') page.visual_effect :shrink, ''tip_''+params[:id], :duration => 3 This works, *unless* I uncomment the Content-Type line in the
2007 Jan 23
5
Snom 320 echo
Has anyone ever encountered an echo on the IP phone side of a call? It is an echo of the user's own voice. I believe that no one else in the office is experiencing this problem. The phone itself is a Snom 320. I've asked Snom for assistance since my source no longer carries Snom, but unlike previous times they've been slow to respond. ----- Mike Hammett Intelligent Computing
2009 Feb 04
1
[LLVMdev] rol/ror llvm instruction set
--- On Tue, 2/3/09, Owen Anderson <resistor at mac.com> wrote: > From: Owen Anderson <resistor at mac.com> > Subject: Re: [LLVMdev] rol/ror llvm instruction set > To: kasra_n500 at yahoo.com, "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Date: Tuesday, February 3, 2009, 4:20 PM > On Feb 3, 2009, at 3:54 PM, Kasra wrote: > > I guess the
2007 Nov 07
2
Setting headers in sent_file response
I''m having trouble playing a video from my site on the iphone using send_file. It seems that I''m missing the Accept-Ranges header in my response. How can I set the Accept-Ranges header in my send_file response? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2009 Feb 04
0
[LLVMdev] rol/ror llvm instruction set
On Feb 3, 2009, at 3:54 PM, Kasra wrote: > I guess the backends could know about the instructions. But I am not > convinced why it is beneficial not to have ROR and ROL instructions > within llvm. > How would it be beneficial to have them, if we already generate them at the target level properly? Adding instructions "just because" doesn't seem wise. -Owen
2007 Mar 27
3
rc28 : can't set quotas with userdb + passwd file
I'm using dovecot 1.0 rc28 - great software! I have a virtual hosting setup, with passdb and userdb both using a passwd file. I cannot get per-user quotas put in the relevant field of the userdb to work. They appear to be completely ignored; only the setting from /etc/dovecot.conf is applied. Can anyone confirm that this is working for them? If it is, can you post the relevant bits of
2010 Jul 30
2
creation package
Dear r-help, I create a package. When I installed this package (I use this command : R CMD check namepackage),I find an error: * checking whether package 'namepackage' can be installed ... ERROR Installation failed. Could you help me to find solution for this error. Best Regards [[alternative HTML version deleted]]
2006 Dec 31
2
what''s with the response.should_be_xxxx stacktrace?
If I do get :index response.should_be_success I get about 20k of marshalled dumpage that starts like #<ActionController::TestResponse:0x390443c @body=\"<html><body>You are being <a href=\"http://test.host/carts/1\">redirected</a>.</body></html>\", @assigns=[], @redirected_to={:action=>\"show\", :id=>1},
2007 May 09
4
[LLVMdev] LLVM Developers Meeting - Dinner (Response needed)
LLVM Developer Meeting Attendees, I need to get a count of the people planning to stay after the meeting for dinner. If we have a large enough group, we may need to make special arrangements. Attendees will have to pay for their own dinner, but we can get reservations or possibly reserve a banquet room. So please email me by May 11th, if you plan to go to dinner. Thanks, Tanya Lattner
2005 Sep 15
2
Bug#328632: Please include README.logcheck-database.gz
Package: logcheck Version: 1.2.41 Severity: minor man (8) logcheck says: For hints on how to maintain rules, see README.logcheck-database.gz, but this file is not included in /usr/share/doc/logcheck. micah -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel:
2008 Nov 18
2
Password authentication and character set
Hi, I've searched in the wiki and in the mailinglist archives but haven't found anything about password character sets within the dovecot authentication deamon. My problem is that we have users with passwords containing scandinavian characters (???, umlauts) and the debug log shows that different clients send the password in different charsets. The passwords are stored in a Mysql
2008 Feb 28
15
Ajax.Updater response encoding Safari
new Ajax.Updater($(''toppanel''), ''/ajax/form.php'', { parameters: {}, evalScripts: true, insertion: Insertion.Before }); form.php encoding is utf-8. page encoding is also utf-8. Why response encoding is broken in Safari? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2008 Apr 30
1
Google Ajax Search API - UTF-8 encoded response
Hello All, I am writing a facebook application in ruby on rails, which requires google search in one page. I''ve implemented this using a simple RESTful interface as follows: url = URI.parse( "http://ajax.googleapis.com/ajax/services/search/ local?v=1.0&q="+params[:keyword] ) req = Net::HTTP::Get.new(url.path+"?"+url.query) res = Net::HTTP.start(url.host,
2008 Oct 01
3
Step-by-set Postfix/Dovecot/LDA?
Anyone know of a /complete/ step-by-step HOWTO for setting up a system using Postfix, Dovecot, and Deliver? I'm looking to put a new mail server together that will host three domains with pretty low volumes of email. Later adding three or four more for some non-profits that I host. I'm finding my self skipping all around the Postfix and Dovecot sites trying to come up with this