Skip to content

Commit

Permalink
Merge pull request #25177 from y-yagi/fix_class_name
Browse files Browse the repository at this point in the history
fix incorrect class name [ci skip]
  • Loading branch information
prathamesh-sonpatki committed May 28, 2016
2 parents 3ce3b22 + 5e87e1f commit f5f1caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def hash_filter(params, filter)
#
# class PeopleController < ActionController::Base
# # 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.
# # This is the recommended form:
# def create
Expand Down
2 changes: 1 addition & 1 deletion guides/source/action_controller_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ predefined raise/rescue flow to end up as a 400 Bad Request.

```ruby
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
# step.
def create
Expand Down

0 comments on commit f5f1caa

Please sign in to comment.