部署rails遇到問題

c3tc3tc3t發表於2017-10-29

 

 

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

 

相關文章