我正在瘋狂2.1上建立一個自定義選項卡,我有我的Deface覆蓋這工作正常,但當我嘗試點擊我的標籤已經在此選項卡上它會去到url/admin/admin/places。所以我需要這個去總是/ admin/places。Spree自定義管理標籤幫助URL損壞覆蓋
找到這個https://codeclimate.com/github/spree/spree/Spree::Admin::NavigationHelper它說該選項卡採取第一個參數,並使路徑admin_places_path。
:insert_after => "[data-hook='admin_tabs']",
:text => "<%= tab :places, :icon => 'icon-th-large'%>"
我嘗試了平時:以「管理員/地方」網址PARAM但得到了同樣的結果,並一直在尋找的標籤實現這導致我codeclimate現在這裏。任何人都知道如何避免這一點?