Add route helper to call to sort_link so that it can find the necessary routes

This commit is contained in:
Luis Ramos
2020-09-24 14:48:10 +01:00
parent 09aef524f3
commit 80cbe6b30f
2 changed files with 4 additions and 4 deletions

View File

@@ -13,8 +13,8 @@
%col{ style: "width: 15%" }
%thead
%tr
%th= sort_link @search,:email, t(".user"), {}, {title: "users_email_title"}
%th= sort_link @search,:enterprise_limit, t(".enterprise_limit")
%th= sort_link [:spree, @search], :email, t(".user"), {}, {title: "users_email_title"}
%th= sort_link [:spree, @search], :enterprise_limit, t(".enterprise_limit")
%th.actions
%tbody
- @users.each do |user|

View File

@@ -22,9 +22,9 @@
%col{style: "width: 15%"}/
%thead
%tr
%th= sort_link @search,:name, t("spree.name"), title: 'zones_order_by_name_title'
%th= sort_link [:spree, @search], :name, t("spree.name"), title: 'zones_order_by_name_title'
%th
= sort_link @search,:description, t("spree.description"), {}, {title: 'zones_order_by_description_title'}
= sort_link [:spree, @search], :description, t("spree.description"), {}, {title: 'zones_order_by_description_title'}
%th= t("spree.default_tax")
%th.actions
%tbody