Skip to content

Instantly share code, notes, and snippets.

@NeMO84
Created March 17, 2011 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeMO84/873732 to your computer and use it in GitHub Desktop.
Save NeMO84/873732 to your computer and use it in GitHub Desktop.
ActiveResource::Formats::XmlFormat.decode("<a><b></b></a>")
=> {"b"=>nil}
# Is there any way to to change the xml, such that, we could yeild the following: {"b"=>""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment