ActionView::Template::Error: blob delegated to attachment, but attachment is nil
https://sentry.service.example.com/sentry/nucleus/issues/13960/
NoMethodError: undefined method `blob' for #<ActiveStorage::Attached::One:0x00007f0af4665700>
app/models/uploaded_file.rb:20:in `title'
@title || file.blob.filename
app/views/uploaded_files/_show.html.haml:2:in `_app_views_uploaded_files__show_html_haml__2825645961986313031_69842512440240'
= link_to(uploaded_file.title, rails_blob_path(uploaded_file.file), target: '_blank')
app/views/uploaded_files/_one_uploaded_file_form_field.html.haml:3:in `_app_views_uploaded_files__one_uploaded_file_form_field_html_haml___4091814824585424822_69842511716220'
= render partial: 'uploaded_files/show', object: uploaded_file, as: :uploaded_file
app/views/inventions/_form.html.haml:29:in `block in _app_views_inventions__form_html_haml___3463336902453507463_69842510324620'
= render partial: 'uploaded_files/one_uploaded_file_form_field', object: form.object.uploaded_file, as: :uploaded_file, locals: { data_entity: form.object, data_entity_field: :rough_description }
app/views/inventions/_form.html.haml:1:in `_app_views_inventions__form_html_haml___3463336902453507463_69842510324620'
= form_with(model: invention, local: true, class: 'form-taskable') do |form|
...
(202 additional frame(s) were not displayed)
Module::DelegationError: blob delegated to attachment, but attachment is nil
app/models/uploaded_file.rb:20:in `title'
@title || file.blob.filename
app/views/uploaded_files/_show.html.haml:2:in `_app_views_uploaded_files__show_html_haml__2825645961986313031_69842512440240'
= link_to(uploaded_file.title, rails_blob_path(uploaded_file.file), target: '_blank')
app/views/uploaded_files/_one_uploaded_file_form_field.html.haml:3:in `_app_views_uploaded_files__one_uploaded_file_form_field_html_haml___4091814824585424822_69842511716220'
= render partial: 'uploaded_files/show', object: uploaded_file, as: :uploaded_file
app/views/inventions/_form.html.haml:29:in `block in _app_views_inventions__form_html_haml___3463336902453507463_69842510324620'
= render partial: 'uploaded_files/one_uploaded_file_form_field', object: form.object.uploaded_file, as: :uploaded_file, locals: { data_entity: form.object, data_entity_field: :rough_description }
app/views/inventions/_form.html.haml:1:in `_app_views_inventions__form_html_haml___3463336902453507463_69842510324620'
= form_with(model: invention, local: true, class: 'form-taskable') do |form|
...
(203 additional frame(s) were not displayed)
ActionView::Template::Error: blob delegated to attachment, but attachment is nil
ActionView::Template::Error: blob delegated to attachment, but attachment is nil
Edited by Michael Prilop