Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lightningdb/dasherizing_builder

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rails plugin to use dashes instead of underscores when using XML Builder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.