-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Description
Hi,
I'm struggling with some issue and not sure how to get out of it:
Here is my labels/index.rabl
collection @labels
attribute :id, :name
When I do next
renderer = Rabl::Renderer.new('labels/index', Label.limit(4), { :format => 'json', :view_path => 'app/views/api/pro/v2' }).render
=> "{\"name\":\"Label\"}"
which is totally wrong as it should display collection as an array of 4 hashes with proper id & name.
I'm not sure why it does like this.
So I'm using rails 4.2.11 & rabl 0.14.1
Wdyt?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels