= ActiveModel::ForbiddenAttributesError < StandardError (from /home/chedong/.local/share/rdoc) ------------------------------------------------------------------------ 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"> ------------------------------------------------------------------------
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:45 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)