ruby on rails - Spree override admin menu with tab don't work -
i need customize spree (v3.2)admin menu add new tab have icon.
i tried creating override as
deface::override.new( :virtual_path => 'spree/layouts/admin', :name => 'custom-admin-tab', :insert_after => "[data-hook='admin_tabs']", :text => "<%= tab :messages, :icon => 'icon-th-large', url: spree.admin_messages_path %>" )
here routes
spree::core::engine.add_routes namespace :admin resources :messages end end
but in admin menu, don't show "messages" tab.
so happend it?
Comments
Post a Comment