【发布时间】:2016-10-23 20:38:32
【问题描述】:
在我的 heroku 网站上创建新公司没有任何问题。当我添加 aws-s3 来存储照片时,我开始遇到这个错误。
Paperclip::Error (Company model missing required attr_accessor for 'logo_image_file_name')
在我的架构中,我的公司表有 logo_image_file_name,而我对应的控制器有
params.require(:company).permit(:name, logo_image:
[:logo_image_file_name, :logo_image_file_size,
:logo_image_content_type, :logo_image_updated_at], :address...
我已经完成了 heroku rake db:reset 并为数据库播种。到目前为止,该错误仅发生在公司表单提交上。
【问题讨论】:
-
该错误是否仅在为数据库播种时出现??
标签: ruby-on-rails heroku amazon-s3