rails paperclip no direct access through sql query from another model

喜你入骨 提交于 2019-12-04 13:48:33

This is an old post but I had run into the same problem and was an easy fix with the correct query and the same loop you already have but my issue was in Rails 4.

For those who have this issue in the future try using

Category.where(:id => params[:id])
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!