fix incorrect class name [ci skip]

This commit is contained in:
yuuji.yaginuma 2016-05-28 15:05:03 +09:00
parent 3ce3b2233a
commit 5e87e1faf6
2 changed files with 2 additions and 2 deletions

View File

@ -797,7 +797,7 @@ module ActionController
# #
# class PeopleController < ActionController::Base # class PeopleController < ActionController::Base
# # Using "Person.create(params[:person])" would raise an # # Using "Person.create(params[:person])" would raise an
# # ActiveModel::ForbiddenAttributes exception because it'd # # ActiveModel::ForbiddenAttributesError exception because it'd
# # be using mass assignment without an explicit permit step. # # be using mass assignment without an explicit permit step.
# # This is the recommended form: # # This is the recommended form:
# def create # def create

View File

@ -203,7 +203,7 @@ predefined raise/rescue flow to end up as a 400 Bad Request.
```ruby ```ruby
class PeopleController < ActionController::Base class PeopleController < ActionController::Base
# This will raise an ActiveModel::ForbiddenAttributes exception # This will raise an ActiveModel::ForbiddenAttributesError exception
# because it's using mass assignment without an explicit permit # because it's using mass assignment without an explicit permit
# step. # step.
def create def create