Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. NoMethodError in Admin::Users#show
  2. Showing /usr/src/app/app/views/active_admin/base/_logs.html.arb where line #3 raised:
  3.  
  4. undefined method `constantize' for nil:NilClass
  5. Extracted source (around line #138):
  6. 136
  7. 137
  8. 138
  9. 139
  10. 140
  11. 141
  12.  
  13. assoc = obj.class.reflect_on_all_associations.detect { |e| e.name == assoc_name.to_sym }
  14. object = if assoc.polymorphic?
  15. obj.send(assoc.foreign_type.to_sym).constantize.find(obj.send(assoc.foreign_key.to_sym))
  16. else
  17. assoc.class_name.constantize.find_by(id: id)
  18. end
  19.  
  20. Trace of template inclusion: /usr/local/bundle/gems/activeadmin-1.3.0/app/views/active_admin/resource/show.html.arb
  21.  
  22. Rails.root: /usr/src/app
  23.  
  24. Application Trace | Framework Trace | Full Trace
  25. app/helpers/audit_helper.rb:138:in `link_to_assoc'
  26. app/helpers/audit_helper.rb:105:in `audited_prepare_value'
  27. app/helpers/audit_helper.rb:84:in `block (2 levels) in instance_attr_changes'
  28. app/helpers/audit_helper.rb:74:in `each'
  29. app/helpers/audit_helper.rb:74:in `block in instance_attr_changes'
  30. app/helpers/audit_helper.rb:71:in `instance_attr_changes'
  31. app/helpers/audit_helper.rb:15:in `decorate_instance_changes'
  32. app/views/active_admin/base/_logs.html.arb:3:in `block (2 levels) in _app_views_active_admin_base__logs_html_arb__4610284186347251722_47295033011220'
  33. app/views/active_admin/base/_logs.html.arb:2:in `block in _app_views_active_admin_base__logs_html_arb__4610284186347251722_47295033011220'
  34. app/views/active_admin/base/_logs.html.arb:1:in `new'
  35. app/views/active_admin/base/_logs.html.arb:1:in `_app_views_active_admin_base__logs_html_arb__4610284186347251722_47295033011220'
  36. app/admin/user.rb:43:in `block (2 levels) in <top (required)>'
  37. Request
  38. Parameters:
  39.  
  40. {"id"=>"50"}
  41. Toggle session dump
  42. Toggle env dump
  43. Response
  44. Headers:
  45.  
  46. None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement