Displaying 20 results from an estimated 600 matches similar to: "How do I fix these annoying errors?"
2006 Jun 29
7
Mongrel says it works, but it doesn''t
Hello, I came to know of mongrel by pure chance, it interrested me cause
webrick never worked and instantrails for rails was very slow. the problem
with webrick is/was is that it says just this:
>ruby script/server
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class
has `-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
2007 Dec 10
3
Road to 0.7.0
Hey everyone,
I''ve been refactoring Mechanize for an 0.7.0 release. Basically I''m
trying to clean the code up and there are a few features that I think
are unnecessary, but I would like to ask people first.
1) REXML as a parser.
I want to remove support for REXML. I don''t use it. Hpricot seems to
do everything I need.
2) 1.8.2 thru 1.8.4 support
2007 Oct 27
3
rake spec:rcov failing
Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) -
When running rake spec:rcov, I''m getting the following:
Finished in 245.717813 seconds
856 examples, 0 failures, 48 pending
/usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private
method `gsub'' called for 0:Fixnum (NoMethodError)
from /usr/local/lib/ruby/1.8/rexml/element.rb:1084:in
2006 Aug 30
1
xml - get values
Hi
I have the following xml string that I have loaded into an REXML object
as shown below.
#xml stuff for saveRoute
require ''rexml/document''
include REXML
Xml = "<test>
<name>sam</name>
<description>this is a test</description>
<description>this is a test2</description>
</test>"
XmlObject = Document.new(Xml)
2007 Sep 29
2
REXML - XML query only returning one (last) result
I''m really new to Ruby on Rails, and I''m trying to read an XML file
with REXML. No matter what I try, I am only getting the last result
returned from my query. I should be getting 365 results. Here is the
code:
include REXML
require ''rexml/document''
require ''rexml/xpath''
class MakeFootprintController < ApplicationController
def index
2007 Jun 07
1
Undefined method `register'' for REXML::Encoding:Module
Has anyone seen the below error before?
It appears to only occur when Puppet runs automatically (i.e. a "puppetd
--test" doesn''t cause it). I have recently installed new Ruby rpms on
the server and I''m guessing that I may have left out something when I
built the RPMS (based on FC7 SRPM).
> -----Original Message-----
> From: report@melrhweb1.nmh-au
2006 Jan 08
2
ICONV and REXML
Hi all. I''m having trouble getting REXML to play nicely with an RSS feed
that uses an encoding type called WINDOWS-1250.
My application works when I comment out the references to the lines that
utilize the REXML library.
After visiting my app and being told that Rails could not start properly, my
server.log file says:
FastCGI: comm with server
2008 Jan 02
3
REXML::Comment:Class
I have this field in my app where a logged in user can enter a comment,
but when I click on the link bringing me to that page I get the
following error message:
undefined method `table_name'' for REXML::Comment:Class
I am doing some encrypting that has an ''include REXML'' statement but
when I comment that out I still get this error. Does anyone know where
this is coming
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
2006 Apr 07
2
WHAT IS THE BEST URL TO SEARCH THE RAILS NEWSGROUP?
I need to search the rail list for answers. Where is good URL to do
that?
Nick
2008 Oct 15
5
REXML vs libxml
Hi all,
I''ve been looking at the performance of my fb app and one glaring issue
seems to be with the parsing speed of rexml in processing the results. Has
anyone looked into porting the facebooker parser from rexml to libxml? If
not, any reason I shouldn''t try?
Thanks!
Yu-Shan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 14
2
RESTful thinking - Need some guidance.
This is my first time working with REST and XML. My goal is to access
Google''s geocoding service using HTTP. Here''s the code I have so far:
require ''open-uri''
require ''rexml/document''
include REXML
url=''http://maps.google.com/maps/geo?''
address = ''q=1600 Amphitheatre Parkway Mountin View,CA''
address1 =
2006 Jun 24
1
Parsing XML with REXML problem
Why can it not find my object? What am i missing here? Here is my code:
require ''rexml/document''
include REXML
# classes to represent the objects and relationships in the xml file
class Article
attr_accessor :id, :post, :archive, :ntype, :head, :blurb, :body,
:fblurb, :fimage, :att, :source, :copy, :brand
end
# the base parser
class BaseXMLParser
def initialize(filename)
2006 May 30
11
Display XML file, with some formatting.
Hi.
Im quite new to this Rails thing, but it seems like a good product so
why not try it out whit a little prototype i need to build.
What i want is to load any given XML file, and display it with some
formatting.
I have some XSD shemes to validate the XML files against, but its not
vital rigth now.
But how should i approach this task?
At first it would proberly be a good idea to load the
2005 Dec 28
4
undefined method `include''
I''m getting this error in Rails:
undefined method `include'' for
#<MenusController:0x408efd1c>
The offending code is:
require "rexml/document"
include REXML
I see there may be a problem with GCC 4 on OSX, but
I''m using Redhat with GCC 3.2.
http://weblog.rubyonrails.org/articles/2005/12/22/is-gcc-4-0-incompatible-with-ruby-on-os-x-and-elsewhere
2004 Aug 20
1
Any plans to switch wxruby-swig to using rexml?
since http://nqxml.sourceforge.net/
also recommends that we switch to use rexml which is shipped with ruby?
If there are plans for it but no developers, I might take it up as an
exercise to learn the internals of wxruby-swig.
Cheers,
Phuah Yee Keat
2006 Feb 01
4
REXML::ParseException - but the feed IS valid
I am using Ruby feedparser and when I try to parse this feed:
http://feeds.feedburner.com/Mobilecrunch
I get an error:
REXML::ParseException: Declarations can only occur in the doctype
declaration.
This feed does validate at feedvalidator.org. Any idea why it would raise
an exception?
Thanks,
eduard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 May 17
3
Writing a properly-formed custom type (configxml)
Please hold my hand.
After studying the wiki, several unofficial pages, various mailing list entries, and the operation of the "iptables" type as found on the net, I have created a custom type, lovingly named ``configxml''''.
It updates attributes on the first element matching a supplied XPath in a given XML file. The first use case is configuring Atlassian JIRA to use
2005 Dec 15
6
Code from famous RoR video?
Does anyone know where I could get text file with the code from the
famous video where they create a Weblog in 15 minutes -- The one that''s
here: href="http://rubyonrails.com/screencasts?
(I can''t just watch it here at work, and I''d like to avoid having to
re-type everything in any case.)
Thanks!
--
Posted via http://www.ruby-forum.com/.
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