rabl
rabl copied to clipboard
General ruby templating with json, bson, xml, plist and msgpack support
When I try to render a field whose name in my model is `:format` is happening this error: `too few arguments` ``` ruby child :item do attributes :format end ```
I have nested node like this: ``` node :my_node do :attr1 => attr1_val, :attr2 => attr2_val, end ``` I would like to add attr3 which is object which should reuse...
I found broken strings when those strings wrapped with Struct. It seems that bug inside **Oj** but **I can't reproduce it without rabl and rails**. Configuration: ruby 2.0.0-p195 oj 2.5.4...
I've been struggling with this problem for a little while and my ruby/rails skills are rough, so forgive me. I'll outline what I'm trying to do, feel free to correct...
I am using the same template for collection and object, I am doing this right now: ``` object @asset if @asset collection @assets if @assets ``` It would be nice...
I'm not sure if this is a bug or working as intended, but in any case it doesn't work as I would expect it to work. I've created a little...
The problem appears to be an inconsistency between XML and JSON output and that there is currently no config option that allows app developers to collapse nodes like `{"bundles"=>[{:bundle =>...
I was surprised to see that **child** block fetches an associations instead of instance's variable with the same name, so I was going to use **node** block to force to...
Hi! Maybe I just missed it, but is there an option for generating child objects directly inside the parent (without an intermediate root node)? If not, please add one ;)...
I'm not sure if this is possible, but while I want to use dasherize, in general, for compatibility reasons, I might need to add a single node in my XML...