提交 7db63f3d 编写于 作者: S Santiago Pastorino

Fix MimeResponds example in AC::API documentation

上级 11c71b20
......@@ -71,11 +71,13 @@ module ActionController
# end
#
# class PostsController < ApplicationController
# respond_to :json, :xml
#
# def index
# @posts = Post.all
# respond_with @posts
#
# respond_to do |format|
# format.json { render json: @posts }
# format.xml { render xml: @posts }
# end
# end
# end
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册