Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
annotator-administrate / docs / guides / hiding_dashboards_from_sidebar.md
Size: Mime:

title: Hiding Dashboards from the Sidebar

Resources can be removed from the sidebar by removing their index action from the routes. For example:

# config/routes.rb
Rails.application.routes.draw do
  namespace :admin do
    resources :line_items, except: :index
    resources :orders
    resources :products
    root to: "customers#index"
  end
end

In this case, only Orders and Products will appear in the sidebar, while Line Items can still appear as an association.