Here's the show.html.arb file:
attributes_table_for resource do
row :id
row :state
row :request_type
row :assignee
row :assigner
row :unassigned
row :deleter
end
attributes_table_for resource.request do
row :id
end
And here's the ActiveAdmin.register Request part:
show do |resource|
render 'show'
end
Here's the link that is used to render this page:
<%= content_tag(:li, link_to('View', accounting_request_path(accnt_request))) %>
My question then is, why on earth does this tell me it's trying to remove the association??
This is a GET request, not a PUT or POST request.
Here's the exact error:
Failed to remove the existing associated request. The record failed to save when after its foreign key was set to nil.
It is, indeed, removing the association when I simply view the show page for this record.