You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<%= form_with model: Gallery.new do |form| %> <%= form.file_field :image, direct_upload: true %><% end %>
ActionView::Template::Error (undefined method `options' for nil:NilClass):
In this case the attachment is called images, but we passed the atribute image. The bug was introduced in PR #38957, which added per attachment service. The problem happens because this line:
Steps to reproduce
In this case the attachment is called
images
, but we passed the atributeimage
. The bug was introduced in PR #38957, which added per attachment service. The problem happens because this line:... ends with
attachment_reflection = nil
and then this line:... causes the
nil
exception.Expected behavior
The page is rendered using the default service
Actual behavior
An exception is raised.
System configuration
Rails version: 193289d
Ruby version: 3.0.2
cc: @DmitryTsepelev @gmcgibbon
The text was updated successfully, but these errors were encountered: