I use RABL to format the output of the Rails API. I tried the following code
message.rabl:
object @message attributes :id,:description,:created_at,:created_by_user_id child @comments do |t| partial("user/comment", :object => @comments) end
comments.rabl:
object @comments attributes :comment_body
My problem is that my message.rabl is not rendering partial ie .rabl comments. What is the correct way to render in rabl. Thanks.
source share