我使用Rails 5,Rails的管理和MongoId,在我的模型,我加 has_and_belongs_to_many :topics, class_name: 'Topic', :foreign_key => :topicIds
它與「編輯頁面」,但不工作當我嘗試更改topicIds的值時 message: Attempted to set a value for 'topic_ids'
我有兩個型號:Company和Salesperson看起來像這樣: class Company < ActiveRecord::Base
belongs_to :salesperson
end
class Salesperson < ActiveRecord::Base
has_many :companies
end
在Rails_Admin,當我試圖指派一名銷售人
我有這樣的配置: question.rb class Question
belongs_to :asker
belongs_to :expert
end
user.rb class User
has_one :asker
has_one :expert
end
我設置rails_admin,我不能由於錯誤而編輯任何問題。 ActionContro