Displaying 4 results from an estimated 4 matches for "to_x".
Did you mean:
t1_x
2013 Aug 08
1
Failed to parse template - undefined method `to_xs'
...9;'m getting the following error:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed to parse template bireportweb/reportdbconfig.xml.erb:
Filepath:
/data/ss/svn/puppet/modules/bireportweb/templates/reportdbconfig.xml.erb
Line: 16
Detail: undefined method `to_xs'' for #<String:0x7f7116858570>
This is the line within the reportdbconfig.xml.erb
<property name="odaURL" value="<%= db_url.to_xs %>" />
Puppet Master 3.2.3 with ruby 1.8.7p352
puppet agent version 2.7.19 with ruby 1.8.7p72
I''ve tr...
2008 Oct 14
6
Disabling XML character escaping for to_xml
Currently, it appears to_xml will automatically escape any entities
into their corresponding &XXX representation. There''s a piece in the
documentation that says "If $KCODE is set to u and encoding set to
UTF8, then escaping will NOT be performed."
Unfortunately, this doesn''t appear to be the...
2006 Sep 26
12
resource_feeder feedback
...he reverse case, what you have is silent data
loss [6].
[6] http://www.intertwingly.net/blog/2004/05/28/detente
If you want to put plain text in an RSS 1.0 or RSS 2.0 <description>,
and you are using Builder 2.0 (you *are* using Builder 2.0, aren''t
you?), then you need to add a .to_xs to escape the string. If you want
to put plain text into an Atom <summary> or <content element>, you need
do nothing as that is the default.
Now you need a convention (possibly as simple as
.downcase.ends_with?("html")) and an a way to override this (perhaps
options[:fe...
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 modify that, so seri...