我将如何重写此请求以使ifarticles可用并建立关系?我觉得我很接近,但我无法弄清楚。current_userarticlestemplateshas_and_belongs_to_many
current_user.brand.articles.joins(:template).where(:templates => { :id => @template.id })
谢谢你的帮助!
我将如何重写此请求以使ifarticles可用并建立关系?我觉得我很接近,但我无法弄清楚。current_userarticlestemplateshas_and_belongs_to_many
current_user.brand.articles.joins(:template).where(:templates => { :id => @template.id })
谢谢你的帮助!