-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
25 lines (15 loc) · 689 Bytes
/
Copy pathREADME
File metadata and controls
25 lines (15 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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