我想从一个网址下载到的模型图像: 我已经读过Save image from URL by paperclip 但 首先我碰到这个错误: Paperclip::Error: Page model missing required attr_accessor for 'picture_file_name'
事后 ,我加入了attr_accessible参数和运行到此其他错误: RuntimeErr
我在为用户和地址模型创建多个表单时遇到问题。当我加载页面时,我看不到地址栏。 我的源代码是下面 模型/地址 class Address < ActiveRecord::Base
has_one :user
end
模型/用户 class User < ActiveRecord::Base
belongs_to :address
accepts_nested_at