Skip to content

Commit

Permalink
Fix admin/poster#form params (#4386)
Browse files Browse the repository at this point in the history
Remove one extra set of wrapping square brackets from the expected
params value
  • Loading branch information
veganstraightedge authored Mar 8, 2025
1 parent 96d65c0 commit 3e5cc2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/logos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def set_logo
end

def logo_params
params.expect logo: [%i[
params.expect logo: %i[
title subtitle description slug summary published_at locale publication_status
position hide_from_index image_jpg image_png image_pdf image_svg image_tif
]]
]
end
end
end
1 change: 0 additions & 1 deletion app/views/admin/_page_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<p>
<% if action_name == 'index' %>
<%= link_to "NEW", [:new, :admin, current_resource_name.downcase.to_sym], class: "btn btn-outline-primary btn-sm action-new" %>
LOREM
<% elsif action_name == 'show' %>
<%= link_to "EDIT", [:edit, :admin, thing], class: "btn btn-outline-primary btn-sm action-edit" %>
<% end %>
Expand Down

0 comments on commit 3e5cc2a

Please sign in to comment.