Remove unneeded GET method

Links already use GET by default, so there's no need to specify it.
Furthermore, using `method: :get` makes a link incompatible with
turbolinks.
This commit is contained in:
Javi Martín
2019-10-05 01:34:48 +02:00
parent ad14636255
commit 27522f60e7
4 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@
<div class="small-4 column">
<%= link_to t("admin.admin_notifications.index.edit"),
edit_admin_admin_notification_path(admin_notification),
method: :get, class: "button expanded hollow" %>
class: "button expanded hollow" %>
</div>
<div class="small-4 column">
<%= link_to t("admin.admin_notifications.index.delete"),

View File

@@ -95,7 +95,7 @@
<td>
<%= link_to t("admin.budgets.edit.edit_phase"),
edit_admin_budget_budget_phase_path(@budget, phase),
method: :get, class: "button hollow expanded" %>
class: "button hollow expanded" %>
</td>
</tr>
<% end %>

View File

@@ -25,7 +25,7 @@
<td>
<%= link_to t("admin.statuses.index.edit"),
edit_admin_milestone_status_path(status),
method: :get, class: "button hollow" %>
class: "button hollow" %>
<%= link_to t("admin.statuses.index.delete"),
admin_milestone_status_path(status),
method: :delete, class: "button hollow alert" %>

View File

@@ -31,7 +31,7 @@
<td>
<div class="small-4 column">
<%= link_to t("admin.newsletters.index.edit"), edit_admin_newsletter_path(newsletter),
method: :get, class: "button hollow expanded" %>
class: "button hollow expanded" %>
</div>
<div class="small-4 column">
<%= link_to t("admin.newsletters.index.delete"), admin_newsletter_path(newsletter),