Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `has_attachment' #145

Open
pailoro opened this issue Mar 21, 2017 · 3 comments
Open

undefined method `has_attachment' #145

pailoro opened this issue Mar 21, 2017 · 3 comments

Comments

@pailoro
Copy link

pailoro commented Mar 21, 2017

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!

@danieldocki
Copy link

Same here....

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

@estiens
Copy link

estiens commented Jun 23, 2017

Same here, rails 5.0.4, ruby 2.3.1

@algritz
Copy link

algritz commented Jul 20, 2017

Same,

  • Ruby 2.3.3
  • rails 5.1.2
  • attachinary 1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants