Skip to content

Commit

Permalink
fix deleting images
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed Jan 12, 2025
1 parent 9eda67e commit e7342bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"extensions": [
"github.vscode-pull-request-github",
"oderwat.indent-rainbow",
"shopify.ruby-extensions-pack",
"eamodio.gitlens",
"mhutchie.git-graph",
"github.copilot",
Expand Down
2 changes: 1 addition & 1 deletion app/views/recipe_images/delete_select.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>
<div class="not-prose">
<% @recipe.recipe_images.each do |image| %>
<%= image_tag image.variant(resize_to_fit: [100,100]), class: 'image_inline border-2 border-solid border-transparent', data: { 'filename': image.filename, action: 'click->recipeimagesdelete#select' } %>
<%= image_tag image.variant(resize_to_fit: [100,100]), class: 'image_inline border-2 border-solid border-transparent', data: { 'filename': image.filename.to_s, action: 'click->recipeimagesdelete#select' } %>
<% end %>
</div>
<%= form_tag(delete_recipe_recipe_images_path(@recipe), method: :put, data: { 'recipeimagesdelete-target': 'form'}) do %>
Expand Down

0 comments on commit e7342bc

Please sign in to comment.