Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails plugin to use dashes instead of underscores when using XML Builder.
Ruby
branch: master

This branch is even with dam5s:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
MIT-LICENSE
README
init.rb

README

DasherizingBuilder
==================

Uses dashes instead of underscores when building XML.
 - useful if you want to use ActiveRecord's to_xml as well.
 - useful when you have a library which uses the dasherized convention to parse your XML.

This is a plugin because Rails won't load it in production as a library...
and since I use it in multiple projects now, it's much easier!

Original source code is by Adam Pearson!
http://blog.martiandesigns.com/2008/10/29/dasherizing-builderxmlmarkup-in-rails/

I just made it a plugin.

Enjoy :)


Example
=======

Just use a view file using .xml.api instead of .builder


Copyright (c) 2009 Damien Le Berrigaud, released under the MIT license
Something went wrong with that request. Please try again.