mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix respond_with example code so it makes sense
This commit is contained in:
@@ -208,8 +208,8 @@ module ActionController #:nodoc:
|
||||
# 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|
|
||||
|
||||
Reference in New Issue
Block a user