Displaying 20 results from an estimated 1000 matches similar to: "Problem with ''require xmlsimple'' in vendor code"
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 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
2006 Feb 04
0
XmlSimple vs XML::Simplel?
Greetings!
I have a bunch (thousands) of XML files that I want to process. I want to extract a limited set of data from each and put that data, along with the XML file''s id, into MySQL so that users can do a structured search for (and thus retrieve) specific XML files.. I''ve got some Perl scripts I put together using XML::Simple to do the extraction of the data into CSV files,
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 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 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 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 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
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
2006 May 03
2
How do you use the ''vendor'' directory with 3rd party libraries?
Hi,
I''m wondering how to use the ''vendor'' directory in a Rails app. I
know that you can put plugins and engines into the ''vendor/plugins''
directory and that svn:externals can be used for that, but I was
wondering how & where I put a 3rd party library? My specific case is
the pdf-writer code, which I''d rather have inside my app than as a
2006 Feb 13
1
hackish error handling
I''ve got a block of code that''s turning out.. well - just plain ugly.
So i know I must not be doing it the Ruby way.
The main problem I''m having is in dealing with handling errors - and
just not finding much Rails documentation that gives a deeper
understanding of how to handle errors in Rails (outside of several
docs on the catch-all''s)
the main method
2006 Aug 06
2
assert_difference gives undefined method error in unit tests
Hi there
Am hitting undefined method errors for ''assert_difference'' in my unit
tests under Rails 1.1.4
What could I be missing?
Richard Sandilands
2006 Aug 02
3
Data relationships for e-commerce: users, orders, addresses
Hi there
I''m in the process of developing an e-commerce Rails app but am
getting a little stuck on what models I should be working with on the
order/checkout side of things.
The app requires users to be registered and authenticated to checkout.
So I already have a User model and an Order model (which belongs to a
User). The Order model is largely similar to that used in the Agile
Rails
2006 Jul 21
3
Credit card processing through Australian gateways (eway etc)
Hi there
Has anyone out there embarked on credit card processing in a Rails app
through Australian gateways such as eway?
I''m aware of Payment and ActiveMerchant, but neither support
Australian gateways.
It''s a little beyond me right now to hack these to work with eway.
Any clues would be appreciated here.
Richard Sandilands
2006 Jan 20
2
what''s the right way to require a file?
I''m having a problem importing a class from another project (not a RoR
application). What''s the right way to require such a file?
I have a class ModelPathwayObject. It''s in
#{RAILS_ROOT}/../lib/model_pathway_object.rb , so I add that path to
config.load_paths. In config/environment.rb:
Rails::Initializer.run do |config|
config.load_paths += %W(
2008 Jan 08
1
howto rebuild a object from a received xml hash structure ?
im my web server app , i have an action to be used as a REST web
service
# GET /user/membership.xml?email=emailaddress
def membership
@user = User.find_by_email(params[:email])
respond_to do |format|
format.xml { render :xml => @user.to_xml( :only =>
[ :first_name, :last_name, :display_name, :membership_type, :membership_at], :skip_types
=> true)}
end
end
my
2007 Jan 24
0
the vendor dir, gems and openid
Dear all,
I am currently developing an application which uses OpenID as a login
system. On my development box everything works like a charm. But as
soon as I deploy the code to our production server things go wrong.
First the OpenID gem could not be located. This made sense as it is not
installed on the production server, so after some browsing it appeared
that I needed:
$ cd
2006 May 10
0
using Rails 1.1 param parsers
Hello,
I want to use the new param parsers in Rails 1.1 to process POST''ed xml form
data (at the moment I manually parse request.raw_post using REXML). As per
Scott Raymond:
*"Pluggable parameter parsers* make writable REST web services a cinch. By
default, posts submitted with the application/xml content type is handled by
creating a XmlSimple hash with the same name as the root