-
Hi,
As I know, Rabl don't have any layouts yet. So, the question is: do somebody need this?
-
My usecase is simple. I fetch a geocoded array of objects and render them as a json template. I tried using rabl for the first time today, and it returns empty arrays. Here is my code.
```
#user_cont…
-
Talking with @svenfuchs and reminded me that it might be helpful to render RABL outside of a controller context (for messaging queues, etc). One simple possibility is to support partial at the class l…
-
### Anyway to get instead:
`index.json.rabl`:
``` ruby
collection @offers
attributes :id, :title, :price, :permalink
child :metro_station do
attributes :name
end
```
`show.json.rabl`:
``` ruby…
-
Example:
From `app/models/offer.rb`:
``` ruby
has_many :offer_images do
def history_image(size = :history)
history.first.try(:image).try(:url, size)
end
end
```
From `app/views/offers/show.…
-
Hi.
I can't get a partial or an extend to use.
I would like to print the content of another template inside a child block.
``` ruby
collection @my_objects
child(:address => :addres) { extends('addre…
-
But 1.9.2 is fine, because ree Hashes is not ordered.
```
rabl : rake test
(in /Users/koss/Code/rabl)
/Users/koss/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -I"lib:lib:test" -rubygems "/Users/koss/.rvm/…
-
I'm rather confused what's going on. I'm trying to do the example and I get this for a result
``` javascript
[{},{},{}]
```
Here's my controller
``` ruby
def index
@courses = Course.all
res…
-
Hi,
I am probably doing this wrong, but I have a method that wants to return a collection and a status, so I am making my data object sort of like this:
`@thing = {:foo => "bar", :pop => 123}`
So, …
-
Hi,
I'm unsure if this is an application-specific problem, or what, but with my app I'm trying to use rabl and running into a snag.
So i have the following controller:
``` ruby
class PeopleControl…