similar to: submitting xml documents from POST request/ test framework

Displaying 20 results from an estimated 5000 matches similar to: "submitting xml documents from POST request/ test framework"

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
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%=
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''
2006 Jul 27
2
more on file upload
well, so File upload seems to be only working under mongrel. I have not tried it, but Camping crash extracting the request parameters on both CGI and FastCGI. I''m looking at rails code for inspiration, but it''s a bit outside of my knowledge..... not sure what to do with a FCGI::Stream object ..... this is what rails do for CGI, I''m not sure if it works the same for
2007 Dec 03
3
Request param type of array
Hello. I have tested such form: <form method=''POST''> <input type=''hidden'' name=''myfield'' value=''value1''> <input type=''hidden'' name=''myfield'' value=''value2''> <input type=''submit'' name=''_submit''
2007 Mar 23
0
Error - Conflicting types for parameter containers
Hi, I am trying to implement password-reset functionality. I have an email sent out to a user when they request a password. The URL in the email contains a cgi param, of which is a SHA 256 hex digest. The user clicks on that link and the page is opened in a separate window, when the user enters in their password. When I hit submit, I get the following error, anyone run into this error before?
2006 Jul 31
3
Problem in posting xml content.
When I post the XML data as the message content to my rails website, I can see the exception info in the log file. The error message is "can''t typecast" the element name in my xml document. The first line in backtrace is: "c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb:111:in`typecast_xml_value''" Please give
2006 Jul 24
0
parsing xml from post
I am working on an application where the client sends an xml string. I was planning on using REXML and reading the raw post data. Then I noticed that if the content type is text/xml, rails parses the xml into the params hash. However, it chokes on attributes in the xml such as the xml below, throwing an error that it can''t typecast the attribute value in line 99 of cgi_methods.rb
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It''s still missing a lot of functionality, but it''s useful to us as is, so I''m shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Bryan Here''s the README:
2006 Apr 11
0
Page cache and query string
I''ve read about the problems of using page cache when there''s a query string, i.e. /article/list?page=1 will cache /article/list.html, then /article/list?page=5 will retrieve /article/list.html regardless of query string. I''m using a workaround, it looks almost obvious but since I haven''t found it mentioned anywhere I''m afraid there''s some
2006 Nov 19
3
Binary PUT requests are failing
Does anyone know why binary PUTs are causing a 500 error in Rails? Non binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve tried using both mongrel and webrick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Sep 16
3
USDT probes in both static library and application
Hi All, I''ve got a problem when I have USDT probes in a static library and in the application code outside of the library. I build the static library containing some USDT probes, glomming everything together (ld -r) before creating the .a file to preserve the probe symbols. This all works fine. I build an application which also has some USDT probes. When I build the application which
2006 Jan 25
1
xx-0.1.0 : xhtml and xml make it twice as dirty
NAME xx - twice as dirty SYNOPSIS ~ > gem install "double x" require "xx" include XX::XHTML doc = xhtml_{ html_{ head_{ title_{ " go xx! " } } body_{ " one more and it would be illegal " } } } URI http://rubyforge.org/frs/?group_id=1024 DESCRIPTION xx is a library designed to extend ruby objects
2009 Apr 29
0
XML Builder - problems with serialized ruby
Hi, I''m using the Builder gem to transform an array/hash that contains serialized ruby. Builder''s to_xs method seems to mangle serialized ruby though. I can get around this by encoding/decoding with base 64, but that doesn''t seem like a good path to follow. Builder is using this code for escaping: http://intertwingly.net/stories/2005/09/28/xchar.rb Any ideas on how to
2007 Sep 10
0
The use for an XML based metadata format
On Tuesday 11. September 2007 01:34:35 Ian Malone wrote: > Daniel Aleksandersen wrote: > > By the way, I have bee discussing Dublin Core (?DC?) with the > > developers of the Atom 1.0 specification. It seams the reason they > > created atom:rights instead of using dc:rights were just about what I > > thought it was: They though DC was too loosely defined. Their own >
2007 Sep 10
2
The use for an XML based metadata format
Daniel Aleksandersen wrote: > By the way, I have bee discussing Dublin Core (?DC?) with the developers of > the Atom 1.0 specification. It seams the reason they created atom:rights > instead of using dc:rights were just about what I thought it was: They > though DC was too loosely defined. Their own atom:rights element were > designed to more clearly define what the element
2006 Dec 29
4
Remote API passing in parameter named 'action', routing loses it
I''m working with a remote API that calls a URL in my app, passing in a parameter named action. So the request would look like: http://localhost/my_controller?action=foo Routing correctly interprets the controller action as index. However, it sets params[:action] to index as well. I know that''s how it''s supposed to work...but it means I lose the action parameter
2003 Feb 25
1
How to modify XML documents and save changes
Dear, I want to read XML documents, add child nodes to some elements and store everything back as an XML document. I've tryed the following: doc <- xmlTreeParse("file.xml") QTListNode<-xmlElementsByTagName(xmlRoot(doc)[[1]],"tagname") append.xmlNode(QTListNode[[1]],newXMLNode(name ="Norm", attrs = NULL)) saveXML(doc, file = "out.xml",
2007 Jul 06
0
Test XML Documents Using assert_select
Have you ever wanted to test your API output without those pesky assert_select error messages? Well now you can! http://dev.rubyonrails.org/ticket/8173 The patch has been sitting there quietly with no comment for a couple months now. I think it should be pretty easy to apply. It won''t affect standard HTML output or even XHTML given IE''s inability understand the standard
2004 Sep 29
2
RSXML - Parsing XML Documents on Internet
R Users - I asked about this a few months ago and never did quite figure it out, so with more information, allow me to try again. If I use the following code: library(xml) xmlTreeParse("http://home.comcast.net/~larsenmtl/xmlTestDoc.xml", isURL = TRUE) I receive this error: Error in xmlTreeParse("http://home.comcast.net/~larsenmtl/xmlTestDoc.xml"", : error in