Closed ccocchi closed 12 years ago
This allow Rails to use rabl template in respond_to instead of calling to_format on the object.
respond_to
to_format
For example in a PostController
def create @post = Post.new(params[:post]) @post.save respond_with(@post) end
create will render the responder_default_view (that can be customizable), for example show.json.rabl
responder_default_view
This allow Rails to use rabl template in
respond_to
instead of callingto_format
on the object.For example in a PostController
create will render the
responder_default_view
(that can be customizable), for example show.json.rabl