我是Ruby on Rails中的新成员。我正在使用Rails 5.1,活动记录序列化器,门卫和设计宝石制作Rails API。 我有一个Order表,它有许多产品。订单和产品之间的关系是多对多的。 订货型号: class Order < ApplicationRecord
validates_presence_of :brute, :net
has_and_belongs_
我需要显示未选中的专业化。用户has_and_belongs_to_many专业化和专业化has_and_belongs_to_many用户。是否有可能显示当前用户未选择的专业化。 class User < ApplicationRecord
devise :database_authenticatable, :registerable,
:recoverable, :rem