-
I've got the following call in Rails 4
`@obj = A.includes(B: { C: D}).find_by_uuid(params[:id])`
Which works fine when viewing the SQL. The problem is the following RABL template creates multipl…
-
Hello,
In our Rail-based API-only app we are generating JSONs by [rendering object directly](https://github.com/ccocchi/rabl-rails/wiki/Render-object-directly).
> There are cases when you want t…
-
I'm using RocketPants with Rabl. When I render a URL in a Rabl template, the `version` parameter is always added by default:
``` ruby
# config/routes.rb
MyApp::Application.routes.draw do
get 'foo' …
-
The basic error I am getting is this:
```
ActionView::Template::Error (no _dump_data is defined for class Proc):
1: object @companies
2: extends "companies/show"
app/views/companies/show.js…
-
I have controller action whose output i am rendering using rabl.
Controller looks like this
class Api::V1::CategoryController < Api::ApiController
def index
@categories = Category.all()
…
-
Hi,
I use MongoID and RABL for my API and had an issue with the `created_at` and `updated_at` fields.
Example in a `.rabl` file:
```
object @foo
attributes :created_at, :updated_at
```
```
Action…
-
I'm currently trying to deal with view paths. I have a Rabl template that is extending from another rabl template located in a rails engine. I've added to my Rabl configuration:
``` ruby
Rabl.configu…
-
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 => :action` for action that I want to retur…
-
I am running into a pretty strange bug with caching `RABL` views.
I have a setup that looks something like this:
#### Relevant Config
``` ruby
# rabl_config.rb
Rabl.configure do |config|
config.ca…
-
I have 2 different rabl templates and their actual outputs are provided below.
### File 1: test.rabl
```ruby
object false
child @test_objects => :test_objects do
attribute :object_id
end
…