Skip to content

Commit

Permalink
Replace rails-ujs stuff with turbo equivalents
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Mar 13, 2024
1 parent c8d3c5e commit a72a67c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/spreadsheets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<td><%= spreadsheet.status %></td>
<td><%= link_to 'Show', spreadsheet %></td>
<td><%= link_to 'Edit', edit_spreadsheet_path(spreadsheet) %></td>
<td><%= link_to 'Destroy', spreadsheet, method: :delete, data: { confirm: 'Are you sure?' } %></td>
<td><%= link_to 'Destroy', spreadsheet, data: { turbo_confirm: 'Are you sure?', turbo_method: 'delete' } %></td>
</tr>
<% end %>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spreadsheets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
</ul>
</p>

<%= link_to 'Import', import_spreadsheet_path(@spreadsheet), method: :post, class: 'btn btn-primary' %>
<%= link_to 'Import', import_spreadsheet_path(@spreadsheet), data: { turbo_method: "post" }, class: 'btn btn-primary' %>

0 comments on commit a72a67c

Please sign in to comment.