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:
@@ -33,7 +33,7 @@
|
|||||||
<div class="small-4 column">
|
<div class="small-4 column">
|
||||||
<%= link_to t("admin.admin_notifications.index.edit"),
|
<%= link_to t("admin.admin_notifications.index.edit"),
|
||||||
edit_admin_admin_notification_path(admin_notification),
|
edit_admin_admin_notification_path(admin_notification),
|
||||||
method: :get, class: "button expanded hollow" %>
|
class: "button expanded hollow" %>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-4 column">
|
<div class="small-4 column">
|
||||||
<%= link_to t("admin.admin_notifications.index.delete"),
|
<%= link_to t("admin.admin_notifications.index.delete"),
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<%= link_to t("admin.budgets.edit.edit_phase"),
|
<%= link_to t("admin.budgets.edit.edit_phase"),
|
||||||
edit_admin_budget_budget_phase_path(@budget, phase),
|
edit_admin_budget_budget_phase_path(@budget, phase),
|
||||||
method: :get, class: "button hollow expanded" %>
|
class: "button hollow expanded" %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<%= link_to t("admin.statuses.index.edit"),
|
<%= link_to t("admin.statuses.index.edit"),
|
||||||
edit_admin_milestone_status_path(status),
|
edit_admin_milestone_status_path(status),
|
||||||
method: :get, class: "button hollow" %>
|
class: "button hollow" %>
|
||||||
<%= link_to t("admin.statuses.index.delete"),
|
<%= link_to t("admin.statuses.index.delete"),
|
||||||
admin_milestone_status_path(status),
|
admin_milestone_status_path(status),
|
||||||
method: :delete, class: "button hollow alert" %>
|
method: :delete, class: "button hollow alert" %>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<div class="small-4 column">
|
<div class="small-4 column">
|
||||||
<%= link_to t("admin.newsletters.index.edit"), edit_admin_newsletter_path(newsletter),
|
<%= link_to t("admin.newsletters.index.edit"), edit_admin_newsletter_path(newsletter),
|
||||||
method: :get, class: "button hollow expanded" %>
|
class: "button hollow expanded" %>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-4 column">
|
<div class="small-4 column">
|
||||||
<%= link_to t("admin.newsletters.index.delete"), admin_newsletter_path(newsletter),
|
<%= link_to t("admin.newsletters.index.delete"), admin_newsletter_path(newsletter),
|
||||||
|
|||||||
Reference in New Issue
Block a user