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 `attachment_definitions' for #<Class:0x007fa004a0c908> #1674

Closed
tradyblix opened this issue Jun 18, 2013 · 13 comments
Closed

Comments

@tradyblix
Copy link

I have everything running on rails 4, but I'm having this issue with paperclip, it seems broken in rails admin rails-4 branch, wondering if anyone else knows what's going on or has seen this. Any paperclip model throws :

undefined method `attachment_definitions' for #Class:0x007fa004a0c908

This is with the latest version 3.4.2 of paperclip.

Thanks

@tradyblix
Copy link
Author

Okay, I think I included the wrong branch. I solved it.

@cmezak
Copy link

cmezak commented Jul 10, 2013

wrong branch of paperclip? which one worked?

@adomokos
Copy link

I am seeing the same problem when I try to run bundle exec rake spec. How did you solve it?

@GeorgeErickson
Copy link

I get the same problem with version 3.5.0 of paperclip, it works for version 3.4.0 of paperclip.

@mshibuya mshibuya reopened this Jul 26, 2013
@mshibuya
Copy link
Member

This is due to change in thoughtbot/paperclip@dad6086.
I believe this to be backward incompatible change, which is not the right thing to be brought into a minor version up.

mshibuya referenced this issue in thoughtbot/paperclip Jul 26, 2013
@wspruijt
Copy link

Same problem here with version 3.5.0, works with 3.4.2

@mshibuya
Copy link
Member

attachment_definitions is back. thoughtbot/paperclip@ceb43f1
Using paperclip's master should solve this issue.

@wspruijt
Copy link

It discovered attachment_definitions was also used in the gem https://github.com/saepia/paperclip-strip-strange-characters, which broke when upgrading to 3.5.0:

mspanc/paperclip-strip-strange-characters#4

@uriklar
Copy link

uriklar commented Jan 23, 2014

I am using the master version of paperclip and still having this issue...

@jemminger
Copy link

I'm using paperclip 4.2.1 and still getting this error.

@mshibuya
Copy link
Member

mshibuya commented Jun 9, 2015

Can you paste full stack trace?

@jemminger
Copy link


URL: https://mysite/rails_admin/ckeditor~asset

vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/dynamic_matchers.rb:26 in method_missing
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields/factories/paperclip.rb:8 in block in <top (required)>
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:54 in call
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:54 in block (2 levels) in factory
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:54 in each
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:54 in detect
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:54 in block in factory
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:50 in each
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/fields.rb:50 in factory
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/has_fields.rb:130 in _fields
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/has_fields.rb:133 in _fields
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/has_fields.rb:108 in all_fields
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/has_fields.rb:83 in fields
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/app/controllers/rails_admin/main_controller.rb:121 in get_collection
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/app/controllers/rails_admin/main_controller.rb:37 in list_entries
vendor/bundle/ruby/2.2.0/gems/rails_admin-0.6.6/lib/rails_admin/config/actions/index.rb:30 in block (2 levels) in <class:Index>
(eval):8 in instance_eval
(eval):8 in index
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/implicit_render.rb:4 in send_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:198 in process_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/rendering.rb:10 in process_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:20 in block in process_action
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in block in halting_and_conditional
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in block in halting_and_conditional
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in block in halting_and_conditional
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in block in halting_and_conditional
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151 in block in halting_and_conditional
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169 in block in halting
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92 in _run_callbacks
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734 in _run_process_action_callbacks
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81 in run_callbacks
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:19 in process_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/rescue.rb:29 in process_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:31 in block in process_action
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164 in block in instrument
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20 in instrument
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164 in instrument
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:30 in process_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/params_wrapper.rb:250 in process_action
vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/railties/controller_runtime.rb:18 in process_action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:137 in process
vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:30 in process
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal.rb:195 in dispatch
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/rack_delegation.rb:13 in dispatch
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal.rb:236 in block in action
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73 in dispatch
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:42 in serve
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:43 in block in serve
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30 in each
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30 in serve
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:802 in call
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:518 in call
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:194 in public_send
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:194 in method_missing
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/mapper.rb:51 in serve
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:43 in block in serve
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30 in each
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30 in serve
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:802 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-pjax-0.8.0/lib/rack/pjax.rb:12 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/jquery-fileupload-rails-0.4.4/lib/jquery/fileupload/rails/middleware.rb:14 in _call
vendor/bundle/ruby/2.2.0/gems/jquery-fileupload-rails-0.4.4/lib/jquery/fileupload/rails/middleware.rb:10 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/rack/agent_hooks.rb:30 in traced_call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/rack/browser_monitoring.rb:23 in traced_call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35 in block in call
vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34 in catch
vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/etag.rb:24 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/conditionalget.rb:25 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/head.rb:13 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225 in context
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29 in block in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88 in _run_callbacks
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734 in _run_call_callbacks
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81 in run_callbacks
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:17 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:38 in call_app
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20 in block in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68 in block in tagged
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26 in tagged
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68 in tagged
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/methodoverride.rb:22 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/runtime.rb:18 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/static.rb:113 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/sendfile.rb:113 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:518 in call
vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:164 in call
vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
vendor/bundle/ruby/2.2.0/gems/passenger-5.0.4/lib/phusion_passenger/rack/thread_handler_extension.rb:85 in process_request
vendor/bundle/ruby/2.2.0/gems/passenger-5.0.4/lib/phusion_passenger/request_handler/thread_handler.rb:149 in accept_and_process_next_request
vendor/bundle/ruby/2.2.0/gems/passenger-5.0.4/lib/phusion_passenger/request_handler/thread_handler.rb:110 in main_loop
vendor/bundle/ruby/2.2.0/gems/passenger-5.0.4/lib/phusion_passenger/request_handler.rb:414 in block (3 levels) in start_threads
vendor/bundle/ruby/2.2.0/gems/passenger-5.0.4/lib/phusion_passenger/utils.rb:111 in block in create_thread_and_abort_on_exception

@mshibuya
Copy link
Member

mshibuya commented Oct 3, 2015

Found the cause.
Having *_file_name field which isn't declared as has_attached_file leads to this error.

@mshibuya mshibuya reopened this Oct 3, 2015
mlins added a commit to Wellbeme/rails_admin that referenced this issue Jan 8, 2016
railsadminteam#1674

This fix in the above PR doesn't work though. Not sure what using "try"
would solve. This actually checks to see if the object resonds to the
method that is missing in some versions of paperclip.
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

8 participants