I am using RABL to format the output of a Rails API. I tried 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 not rendering my partial i.e. comments.rabl . What is the proper way to render partials in rabl. Thank you.