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">
|
||||
<%= 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"),
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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" %>
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user