nesquena/rabl — Issue #182: Unable to use RABL 
Author: tomsoft1
Created: 2012-03-05 15:14:19+00:00
State: open

Sorry if it's not the best place to ask for some support, but here is my problem:

I've tried to use RABL withou any success, any the simplest program liste this:

( action test for controller)

def test
@test={:a=>”toto”,:b=>”titi”}
respond_to do |format|
format.json
end
end

and test.json.rabl like this:
object @test

I always the following result:
[{"titi":{}},{"titi":{}}]

Several strange things: I've an array, instead an object, key instead of values, etc... I've tried several thins, different type, etc, but always the same kind of problems. I am using rails 3.1 and any help greatly appreciated....