similar to: Returning CSV data to the client

Displaying 20 results from an estimated 4000 matches similar to: "Returning CSV data to the client"

2006 Mar 21
11
Stuck on ActiveRecord
Hi, I''m having great fun developing with Rails but I''ve come to a problem that I can''t quite figure out. I have an Order object that "has_many" order_lines. This works perfectly and I can see all the lines. The OrderLine object has an order_id field as well as product_id and amount. Now ideally I would want to do : order.orderline[0].product.name for
2006 Mar 29
13
Rails on Mongrel
Hi, After following advice from you good folks, I gave mongrel a try in a cluster design based on the example on the Mongrel website - and it worked right out of the box which is great - and it''s very fast :) I have got a bit stuck though. I have two MS Word files in /public/files/. I can pull back these files no problem but it isn''t sending a mimetype. I think I have two
2006 Mar 28
6
Deploying rails...
Hi, I thought I''d give lighttpd and FastCGI a go but the latest version I''ve found for fastcgi is 2.4.0 which was released in January 2003. Is this the right version? Can anyone recommend the versions I should use for FastCGI et al and where to find them? I''m not sure I''ve really found what I''m looking for... -- Posted via
2006 May 18
3
How to change CSV properties.....
Hello Good morning to all, I am doing reports in ruby on rails,i am trying to export data throgh excel in CSV format.Now i want to set the font to the text exported to excel sheet.How can i set font..please help me regarding this ... my sample code was like this... report = StringIO.new CSV::Writer.generate(report, '','') do |csv| csv << [''Invoice History
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ? I have an error : |undefined method `content_tag''| class ApplicationController < ActionController::Base def test return content_tag("a","test") end end
2006 Feb 27
2
Upload & Parse CSV
Hi All I was hoping you could help me. I need the ability to upload a large quantity of data via CSV - via an upload form. The CSV file then needs parsing and the data entering into the relevant module. Does anyone have experience of this or perhaps knows of a posting, generator, existing code or any help at all? I''ve been looking but not come across anything so far. I can do this
2006 Apr 17
5
XML-RPC Webservice API
Hi, After following the excellent tutorials in the Agile Web Development with Rails book, I was able to get my webservice working pretty much perfectly :) I can access it via SOAP and XML-RPC and look at service.wsdl to find the API. What I can''t do however is get the API for the XML-RPC call. It fails with : Internal protocol error: NilClass is not a valid input stream. It must
2006 Jun 25
2
Working out sales tax...
Hi, Having googled extensively about storing money in Rails, it seems to be accepted that the best way is to store the prices etc in the smallest part of the currency so that you can use an integer i.e ?20 would be stored as 2000 pence. This is fine and I''ve made a nice pretty wrapper that outputs the price in the standard form for invoicing and what not - but here I''ve
2006 Apr 12
1
URL Paths
Hi, I''m looking to rewrite an existing app in Ruby but it makes extensive use of URL paths. For example a site would redirect to : /Portal/foo/ and from this I could tell that ''foo'' was the site that did the redirect. Of course when I try this with Ruby I get "method not found" which is hardly surprising. I''ve had a quick look round google but
2006 Apr 17
1
SOAP and exceptions
Hi, I''ve been doing more searching, and I''m kinda stuck on how to send back error messages to a SOAP / XML-RPC client if say for example the username and password they supplied were incorrect. Can anyone point me in the right direction? Cheers, Pete -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
Form Validation
Hi, I''ve got an interesting one here :) I have a form with three fields : serial_number initial surname now, if serial_number is entered, it must be between 1 and 64000. If it''s filled in, the other two fields must be blank. If serial_number is left blank then the other two boxes must be filled. Any suggestions? -- Posted via http://www.ruby-forum.com/.
2013 Oct 23
2
performance on document.get_data()
I got some performance issue for document.get_data() and enquire.get_mset(). It costs 35 seconds for matches = enquire.get_mset(0,200), and 3 seconds for iterating all doc in matches to get_data. Is't normal? My index contains 30millions documents. I use python binding to operate xapian. Bellow it's my index structure # value: 0:date, 1:site # data: json message which contains: author,
2007 Aug 19
16
Possible memory leak problem...
I''m trying to figure out a possible memory leak problem I have in my application. I''ve tested both with mongrel and webrick and the problem remains. So I think it''s not a mongrel problem, but I''m posting here to see if anybody can help me. The RAILS application is quite simple, no special plugins ( no RMagick that has the memory problem ),
2003 Nov 27
1
AGI (IF/ELSE)
I need some help with some statements..... #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $callerid = $input{'callerid'}; if ($optemp != 1) { my $empid = $AGI->get_data('employee',-1,5); $AGI->stream_file(entered); $AGI->say_digits($empid); my $optemp =
2008 Jul 23
3
Trouble Playing message file via Perl AGI
Hi all, I'm trying to build an IVR using the Perl AGI module at http://search.cpan.org/~jamesgol/asterisk-perl-0.10/lib/Asterisk/AGI.pm But, I'm having trouble getting my program to play a message and wait for a keystroke. I am able to use this code to play the file, so I know that the $msg variable points to a valid sound file: $result = $agi->exec("background $msg");
2005 Oct 05
1
Caching DTMF tones for get_data AGI?
I'm using get_data in an AGI script and am having a problem when, after a long time in my IVR, when I ask for a 10-digit phone number, the first few tries are always invalid -- the number it reads back is very strange, almost like the DTMF tones from other answers were being cached and then dumped on the call to get_data. Anyone ever experienced this before? I have to do some major
2014 Aug 07
2
agi get_data noanswer
Hi Guys.. I am making an anoucement machine that is not allowed to "answer" the call due to a billing issue. I found that Playback with "noanwser" is usefull in this case. $AGI->exec('Playback',"$message","noanswer")} But when i request some values to the user with get_data, i think there is an answer anywere. Is there a way to get_data
2012 Feb 17
2
DatabaseModifiedError on get_data - best practice?
Hi, I have previously had a problem with getting this error on a get_mset call, and solved it by subclassing XapianEnquire with a backoff-and-retry algorithm (as suggested by this list, many thanks!). However, I now get it intermittently when calling get_data on a XapianDocument. The same solution doesn't seem to be quite as easy in this case, because: 1. The document is not instantiated
2009 Sep 30
2
C++ parser for doc.get_data() result.
Xapians! Did anybody wrote and would like to share a routines that parse result from doc.get_data() into some key and pair values in C++ ? Code: Xapian::Document doc = i.get_document(); string data = doc.get_data(); mymap = parse_result(data); As you know the data string contain all the data within the document delimited by "=" sign and "\n" new line and needs to be parse
2014 Sep 23
2
read digits from the user through php agi script
hi everyone, actually i want to release an IVR system using PHPAGI API , in this IVR i want to get value from the user. I already used get_data defined in phpagi but they are not able to get the value given by the user and store it in a php variable. i tested this : $result = $agi->get_data('beep', 3000, 20); $keys = $result['result']; but every time i found in $keys variable