Flowdock
Ruby on Rails latest stable (v4.1.8) - 0 notes - Superclass: StandardError

Raised when forbidden attributes are used for mass assignment.

class Person < ActiveRecord::Base
end

params = ActionController::Parameters.new(name: 'Bob')
Person.new(params)
# => ActiveModel::ForbiddenAttributesError

params.permit!
Person.new(params)
# => #<Person id: nil, name: "Bob">
Show files where this class is defined (1 file)
Register or log in to add new notes.