I’ve been working with the XML-Mapping gem and had the following error when trying to generate XML: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/element.rb:685:in `write’: undefined local variable or method `output’ for <xml_node> … </>:REXML::Element (NameError) A bit of digging lead me to this bug report, which lead me to look properly at the code and sure enough correcting the code [...]
Now this might just be my system and I certainly don’t have this problem with any of my FreeBSD machines, but I’ve got a weird problem with filenames and colons on my Mac (10.5.8) with Ruby (ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]). Anyhow if I write something like this: File.open(‘foo:bar.txt’, ‘w’) {|f| f.write("hello world") } [...]
Just installed the XML-Mapping Gem (http://xml-mapping.rubyforge.org/) and kept getting a require error every time I tried to use it. /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — xml/mapping (LoadError) Everything seemed okay, until eventually I noticed that the Gem files themselves were rather restrictive on permissions – owner read and write only. So I had [...]
© Chillibear | Theme DePo Skinny | Header image from: Andrews, William: 'Curiosities of the Church: Studies of Curious Customs, Services and Records' (1891)