Answers for "rails model build has_many multiple"

1

has many through source

class User < ActiveRecord::Base
	has_many :answered_questions, through: :answers, source: :question
end
Posted by: Guest on May-16-2020

Browse Popular Code Answers by Language