Viewing User Record: ActionView::Template::Error: undefined method `limit' for nil:NilClass
Created by: ACPK
When I try to "view" an individual user record, I get the following error:
MESSAGE:
ActionView::Template::Error: undefined method `limit' for nil:NilClass
BACKTRACE:
show.html.erb 37 block in _app_views_admin_vendors_show_html_erb(...)
[PROJECT_ROOT]/app/views/admin/vendors/show.html.erb:37:in `block in _app_views_admin_vendors_show_html_erb'
LINE CAUSING THE ISSUE:
# app/views/admin/vendors/show.html.erb:37 :in `block in _app_views_admin_vendors_show_html_erb`
<dd class="attribute-data attribute-data--<%=attribute.html_class%>">
<%= render_field attribute %></dd>
<% end %>