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

 

相关文章:

  • 2021-10-01
  • 2019-01-22
  • 2021-04-08
  • 2021-09-16
  • 2021-12-14
  • 2021-09-12
  • 2021-04-28
  • 2022-01-15
猜你喜欢
  • 2021-07-08
  • 2021-05-26
  • 2021-12-06
  • 2021-06-09
  • 2021-07-15
  • 2021-04-20
  • 2021-04-21
相关资源
相似解决方案