Remove unneeded variable

This commit is contained in:
Trevor Vallender 2024-05-29 08:28:13 +01:00
parent 5116a9d031
commit b7ac267334
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<%# locals: (table:, button_text:) -%>
<%# locals: (button_text:) -%>
<%= form_with model: @table do |f| %>
<%= f.label :name %>

View File

@ -5,4 +5,4 @@
<%= link_to t(".delete_table", name: @table.name), table_path(@table),
data: { turbo_method: :delete, turbo_confirm: t(".delete_table_confirmation", name: @table.name) } %>
<%= render partial: "tables/form",
locals: { table: @table, button_text: t(".update_table") } %>
locals: { button_text: t(".update_table") } %>

View File

@ -3,4 +3,4 @@
<h2><%= t(".new_table") %></h2>
<%= render partial: "tables/form",
locals: { table: @table, button_text: t(".create_table") } %>
locals: { button_text: t(".create_table") } %>