attachinary icon indicating copy to clipboard operation
attachinary copied to clipboard

undefined method `has_attachment'

Open pailoro opened this issue 8 years ago • 3 comments

After setting all the items according to the documentation, I'm getting this error when I try to run the server

/gems/ruby-2.3.3@r426/gems/activerecord-4.2.6/lib/active_record/dynamic_matchers.rb:26:in method_missing': undefined methodhas_attachment' for User (call 'User.connection' to establish a connection):Class (NoMethodError) Iḿ generate all files and included the require "attachinary/orm/active_record" in the applicationController.

Also included the rout: mount Attachinary::Engine => "/attachinary" and run the migrations.

Has anyone ever come across this problem? Thanks!

pailoro avatar Mar 21 '17 14:03 pailoro

Same here....

gem 'rails', '~> 5.0.1'
ruby '2.4.1'

danieldocki avatar Apr 03 '17 14:04 danieldocki

Same here, rails 5.0.4, ruby 2.3.1

estiens avatar Jun 23 '17 21:06 estiens

Same,

  • Ruby 2.3.3
  • rails 5.1.2
  • attachinary 1.3.1

algritz avatar Jul 20 '17 17:07 algritz