0
안녕하세요. 할당 표를 통해 사용자의 역할 제목보기
나는 역할 모델을 가지고 : has_many :users, :through => :role_assignments
has_many :role_assignments
역할 할당 모델 :
belongs_to :user
belongs_to :role
및 사용자 모델 :
has_many :roles, :through => :role_assignments
has_many :role_assignments
가 나는의 사용자 역할을 표시 할 전망. 다음과 같은 내용을 시도했습니다.
감사합니다. 둘 다 잘 작동합니다! – daniel