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
In my Rails project, I encountered an issue related to handling attachments. Specifically, when accessing a page that invokes an attachment from Active Storage using (e.g <%= user.avatar %>), an error occurred.
In my Rails project, I encountered an issue related to handling attachments. Specifically, when accessing a page that invokes an attachment from Active Storage using (e.g
<%= user.avatar %>
), an error occurred.This issue arose due to Rails generating a URL every time it accesses the Active Storage attachment.
"GET /uploads/disk/active_storage_long_key/avatar1.jpg"
To resolve this, I modified the configuration in the
config/initializers/debugbar.rb
file to ignore/uploads
, which successfully resolved the issueThe text was updated successfully, but these errors were encountered: