diff --git a/app/views/tables/_form.html.erb b/app/views/tables/_form.html.erb index 1596ad3..d751ed1 100644 --- a/app/views/tables/_form.html.erb +++ b/app/views/tables/_form.html.erb @@ -1,4 +1,4 @@ -<%# locals: (table:, button_text:) -%> +<%# locals: (button_text:) -%> <%= form_with model: @table do |f| %> <%= f.label :name %> diff --git a/app/views/tables/edit.html.erb b/app/views/tables/edit.html.erb index d8b15c0..6cbed55 100644 --- a/app/views/tables/edit.html.erb +++ b/app/views/tables/edit.html.erb @@ -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") } %> diff --git a/app/views/tables/new.html.erb b/app/views/tables/new.html.erb index 6a1480f..7dcbdac 100644 --- a/app/views/tables/new.html.erb +++ b/app/views/tables/new.html.erb @@ -3,4 +3,4 @@

<%= t(".new_table") %>

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