提交 aebbbc78 编写于 作者: W Will

Fix respond_with example code so it makes sense

上级 1a6c4c86
......@@ -208,8 +208,8 @@ def respond_to(*mimes, &block)
# It also accepts a block to be given. It's used to overwrite a default
# response:
#
# def destroy
# @user = User.find(params[:id])
# def create
# @user = User.new(params[:user])
# flash[:notice] = "User was successfully created." if @user.save
#
# respond_with(@user) do |format|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册