部署rails遇到问题

 

 

underfined method for has_attched_file when installing paperclip

解决

create the file paperclip.rb inside the config/initializers/paperclip.rb

Add the below lines and restart the server

require "paperclip/railtie"

Paperclip::Railtie.insert

 

2 NoMethodError: undefined method `devise' for User (call 'User.connection' to establish a connection):Class

解决

extend Devise::Models

 

3 deploy error: ExecJS::ProgramError: SyntaxError: Unexpected token: name (autoRegisterNamespace)

解决

使用 var 替换js文件中的let

 

posted on 2017-10-29 11:30  c3tc3tc3t  阅读(182)  评论(0编辑  收藏  举报