Displaying 20 results from an estimated 3000 matches similar to: "using Rails 1.1 param parsers"
2005 Nov 27
0
How to get raw_post in functional tests
Hi !
I'm testing PayPal integration, and am using the Paypal gem. The
Paypal gem requires the raw POST data, and not the pre-munged version
that Rails uses.
Running in dev mode, everything works fine, but in the tests, I can't
seem to get at the data.
I did:
class ActionController::TestRequest < AbstractRequest #:nodoc:
def raw_post
raise "RAW_POST Request"
end
end
2006 May 25
2
Help: How to write tests for a sms service interface
I''m working on a website that integrates sms services. When someone
sends an sms to my service number, the sms provider posts an xml doc to
an url specified by me.
I have implemented the processing method like this:
<code>
def process_notification
xml = XmlSimple.xml_in(@request.raw_post, ''ForceArray'' => false)
@params.merge! xml
sms_request =
2006 Feb 11
1
How to POST raw data?
Hi,
I know that ActionController::AbstractRequest provides a raw_post method
that reads the data that has been posted to the HTTP server as raw data.
I am trying to create a rails application that POSTs raw XML data to a
web page that reads raw data.
I would like to know how to POST raw data to an HTTP server using Ruby
on Rails.
Can you help me with this?
Thanks,
Yash
--
Posted via
2006 Jun 28
1
accessing multiple observe_field from one callback
I have a form that has 4 text_field entries, each one with an
observer_field and i want to access the data that is currently inserted
on every field from the :update method for each field. i tried using
instance variables but it appears that each text_field creates an
instance of the searchcontroller for its own.
I also tried using the :with => "something" on the definition of the
2006 Feb 28
0
Ruby Feedparser and exceptions on valid feeds
I am using Ruby Feedparser and keep running into situations when a feed is
valid but feedparser throws an exception - REXML::ParseException:
Declarations can only occur in the doctype declaration.
The following feed does validate at feedvalidator.org (with a warning, but
does validate):
http://www.engadget.com/rss.xml
However, when I run feedparser I get this error:
<REXML::ParseException:
2006 Jul 11
1
error when ''Booting WEBrick''
I encountered this problem yesterday so, I decided to build the whole
/app directory over but got the same thing again. what I did- I build
the MVC files for ''abc'', included abc.rb in /lib, appended
environment.rb with ''require abc'' and the service worked fine. And then
I did the same for ''xyz'' and ran the server but it failed. both abc.rb
and
2006 Jul 10
3
WEBrick start problem
Following is the error I get when I run ''\root\ ruby script\server''
The server does not starts.
Any help !?!
------------------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already
2006 Jun 26
0
error while booting WEBrick server
getting the following when trying to run the WEBrick server:
c:\root\ ruby script\server
error msg:
----------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already initialized constant DEF_KEY_ATTRIBUTES
2006 Feb 07
3
Problems with flickr gem: already initialized constant
New to rails so please bear with me. Am having difficulties with the
flickr plugin. trying to follow the video as a starter, and keep hitting
the following problem when I require ''flickr'' in the environment.rb file
testbed:/srv/www/htdocs/carstuff # ruby script/server
=> Booting WEBrick...
/usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274:
warning:
2006 Feb 12
3
Flickr demo screencast
Hi,
I''m new to Ruby and Ruby on Rails. Yesterday I just received the Agile
Web Development with Rails book.
Now I wanted to recreate the Flickr demo screencast
(http://www.rubyonrails.com/screencasts) just for fun to see it live.
But unfortunately when I start my server I get some warnings:
g5:~/ruby/flickr mw$ ruby script/server
=> Booting lighttpd (use ''script/server
2006 Jul 10
7
problem with starting WEBrick
Following is the error I get when I run ''\root\ ruby script\server''
The server does not starts.
Any help !?!
------------------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already
2006 May 17
0
Problem with ''require xmlsimple'' in vendor code
Hi there
I''m trying to "require ''xmlsimple''" in some code that lives in vendor/
I''ve installed the xml-simple gem, and can confirm this at the command line
with ''gem list --local'' which shows I have v.1.0.8 of the gem.
However, when I start up lighttpd I get this:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
2010 Jun 13
1
Using XmlSimple to parse XML strings
I am using XmlSimple to parse an XML string received from a remote
host. I am getting the error message, "File does not exist: .". I am
fairly well convinced that the problem is that XmlSimple is not
recognizing the received XML string as being valid XML and is
therefore looking for a file by that name (which, of course, does not
exist). The XmlSimple documentation says that it
2006 Jan 19
5
RoR still not working on SuSE 9.0 - incomplete headers received
Hi,
I''ve already posted my problem a few weeks ago on several forums, or
lists. I still have the same problem:
I have a SuSE 9.0 machine, Apache 2.x, ruby 1.8.4 I wanna get RoR
working with fastCGI.
I have installed different versions of fastCGI, have checked the
permissions of the fcgi-ipc directory, reinstalled everything and it
still doesn''t work.
In the browser window I
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 Mar 29
4
xmlsimple not found
I''ve been working through the Flickr tutorial, and it looks like I
installed the Flickr gem with the require xml-simple gem without
problems. But when I got to the point in the demo when it was time to
submit the form, I got an error with the message "uninitialized constant
Flickr".
I did some poking around at the gem repository, and ran ''ruby
2005 Dec 21
8
Incomplete headers
Hi,
I wanna use Rails on a SuSE server with apache. Everything should be
installed correctly, but when running the application I get this in my
apache log:
FastCGI: comm with server
"/srv/www/htdocs/web4/html/rails/public/dispatch.fcgi" aborted: idle
timeout (60 sec)
FastCGI: incomplete headers (0 bytes) received from server
2009 May 27
0
request.raw_post into Tempfile
i have flash application ,which will give a jpg file as raw_post
from that raw_post i am trying to store into a tempfile
tempfile=Tempfile.new("myfile.jpg")
tempfile.write(request.raw_post)
but always "tempfile.read" giving ""(not storing the data) as output
i don''t why ?
any help ?
--
Posted via http://www.ruby-forum.com/.
2006 May 04
2
How can I get posted params in correct order?
I''d like to have posted form field data in the same order they were in
the form.
Raw_post shows the data in correct order but params hash doesn''t. This
happens every time (tried it with webrick).
Any ideas how to get an array of objects in the correct order?
--
Posted via http://www.ruby-forum.com/.
2009 Feb 02
12
[RSpec] rcov and/or rexml bug?
Hi,
Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the
following error message with $ rake spec:rcov
--
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`[]'': no implicit conversion from nil to integer (TypeError)
from
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`wrap''
from