Rabl allows you to capture attributes by naming them in your view, for example:
object @user attributes :name, :email
I have a model whose attributes will not be known, but I would like to display everything returned from the controller in my instance variable using rabl.
Is there a shortcut, for example:
attributes :all
and etc.
thanks
source share