rabl
rabl copied to clipboard
General ruby templating with json, bson, xml, plist and msgpack support
Hello, I was wondering if there is current support (that I'm not seeing), for specifying whether or not a json root is included in each rabl rendering. Solutions presented online...
Any progress on cache support for Rack/Sinatra apps? Right now, it's exclusive to Rails, but I read in the docs that there are plans to expand that support.
This issue was raised in #374, but haven't been actually fixed. In the README you have the following: You can also pass in the current object: ``` ruby object @user...
If you use the enable_json_callbacks option, the callback itself is cached: For example, if I call `/api/1?callback=foo` it will return `foo({})`, and subsequently `/api/1` and `/api/1?callback=bar` will also return `foo({})`....
When using caching, I get the following error: `ActionView::Template::Error File name too long` Maybe the filename should be in sha1 or md5.
Hi guys, I am using rabl in a Rails 4 project and the only way I found to get template render (with .json.rabl file) working was adding `layout false, :only...
Hi, i noticed a strange behaviour using `cache_sources = true` (no other options set) and versioncake, not sure if it's a bug or i don't understand the cache_sources option. example:...
So, I have the inflection `inflect.irregular 'lesson_progress', 'lessons_progresses'` but collections in rabl ignore this inflection and singularize `lessons_progresses` to `lessons_progress`.
``` ruby # users/base object @user cache @user attributes(:id, :name) # users/show object @user extends('users/base') child(:followers) do extends('users/base') end ``` This will output the following when caching is OFF: ```...
I would like to render a collection using the show.xml.rabl template of my object but rabl render this result: ``` ``` If I call the show url, it render all...