プロジェクトでカテゴリと呼ばれるビューを編集しようとしていますが、そうしようとすると非常に奇妙なエラーが発生するようです。
表示されるエラーは次のとおりです。
    ActiveModel::MassAssignmentSecurity::Error in CategoriesController#update
    Can't mass-assign protected attributes: id, name, parent_cat_id
Parameters:
{"utf8"=>"✓",
 "_method"=>"put",
 "authenticity_token"=>"RaQQRvJRRmjg0HAy3utlrD2wKAvYXbtNC2hjR4JHpXs=",
 "category"=>{"id"=>"3",
 "name"=>"Non-Fictional",
 "parent_cat_id"=>"0"},
 "commit"=>"Update",
 "id"=>"3"}
私のカテゴリテーブルは次のとおりです:-
id serial NOT NULL,
  name character varying(255),
  parent_cat_id integer DEFAULT 0,
  deleted integer NOT NULL DEFAULT 0,
  CONSTRAINT categories_pkey PRIMARY KEY (id)
私のカテゴリ モデル ファイルは次のとおりです。
class Category < ActiveRecord::Base
    attr_accessible :name, :parent_cat_id
    # ------- ASSOCIATIONS -----------
    has_many :books
    belongs_to :category, :foreign_key => 'parent_cat_id'
end
誰でもこれで私を助けてくれますか