首页 > 其他 > 详细

部署rails遇到问题

时间:2017-10-29 12:08:16      阅读:206      评论:0      收藏:0      [点我收藏+]

 

 

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

 

部署rails遇到问题

原文:http://www.cnblogs.com/or2-/p/7749644.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!