search for: _escape

Displaying 2 results from an estimated 2 matches for "_escape".

Did you mean: escape
2009 Sep 25
0
WWW::Mechanize and Rails console not playing well
...ns.first) ArgumentError: one hash required from /home/jwoods/NetBeansProjects/activista/vendor/rails/ actionmailer/lib/../../actionpack/lib/../../activesupport/lib/ active_support/core_ext/string/interpolation.rb:85:in `%'' from /usr/lib/ruby/1.8/webrick/httputils.rb:352:in `_escape'' from /usr/lib/ruby/1.8/webrick/httputils.rb:352:in `gsub'' from /usr/lib/ruby/1.8/webrick/httputils.rb:352:in `_escape'' from /usr/lib/ruby/1.8/webrick/httputils.rb:370:in `escape_form'' from /usr/lib/ruby/1.8/www/mechanize/util.rb:9...
2008 Oct 14
6
Disabling XML character escaping for to_xml
...actually the default for Rails nowadays), we still get encoded characters in to_xml output. Since our client is UTF-8 aware, we need to pass thru the UTF-8 data intact. The only way we''ve found to do this is thru the following horrible monkey-patch: module Builder class XmlBase def _escape(text) text end end end What''s the proper way to do this? Thanks, Nate --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to r...