Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NoMethodError in Admin::Users#show
- Showing /usr/src/app/app/views/active_admin/base/_logs.html.arb where line #3 raised:
- undefined method `constantize' for nil:NilClass
- Extracted source (around line #138):
- 136
- 137
- 138
- 139
- 140
- 141
- assoc = obj.class.reflect_on_all_associations.detect { |e| e.name == assoc_name.to_sym }
- object = if assoc.polymorphic?
- obj.send(assoc.foreign_type.to_sym).constantize.find(obj.send(assoc.foreign_key.to_sym))
- else
- assoc.class_name.constantize.find_by(id: id)
- end
- Trace of template inclusion: /usr/local/bundle/gems/activeadmin-1.3.0/app/views/active_admin/resource/show.html.arb
- Rails.root: /usr/src/app
- Application Trace | Framework Trace | Full Trace
- app/helpers/audit_helper.rb:138:in `link_to_assoc'
- app/helpers/audit_helper.rb:105:in `audited_prepare_value'
- app/helpers/audit_helper.rb:84:in `block (2 levels) in instance_attr_changes'
- app/helpers/audit_helper.rb:74:in `each'
- app/helpers/audit_helper.rb:74:in `block in instance_attr_changes'
- app/helpers/audit_helper.rb:71:in `instance_attr_changes'
- app/helpers/audit_helper.rb:15:in `decorate_instance_changes'
- app/views/active_admin/base/_logs.html.arb:3:in `block (2 levels) in _app_views_active_admin_base__logs_html_arb__4610284186347251722_47295033011220'
- app/views/active_admin/base/_logs.html.arb:2:in `block in _app_views_active_admin_base__logs_html_arb__4610284186347251722_47295033011220'
- app/views/active_admin/base/_logs.html.arb:1:in `new'
- app/views/active_admin/base/_logs.html.arb:1:in `_app_views_active_admin_base__logs_html_arb__4610284186347251722_47295033011220'
- app/admin/user.rb:43:in `block (2 levels) in <top (required)>'
- Request
- Parameters:
- {"id"=>"50"}
- Toggle session dump
- Toggle env dump
- Response
- Headers:
- None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement