未定义的局部变量或方法`remote_avatar_url' for main:对象

时间:2017-10-17 17:44:45

标签: ruby-on-rails carrierwave

我已将avatarUploader安装为carrierwave docs中的show

FactoryGirl.create(:user, remote_avatar_url => "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/14938353_1195336437213378_941804383137628957_n.jpg?oh=163a1fef88ec96558056094f60152976&oe=5A81C63F")`

当我尝试使用网址

创建用户时
item
  

NameError:未定义的局部变量或方法`remote_avatar_url' for main:Object

1 个答案:

答案 0 :(得分:2)

你忘了冒号:

HELLO PEEPS        HELLO PEEPS