Sha256: 5c68b723c4490a299ef5ea7011e02be6d02deea6b71c5c3d73304b0fdcc646a8

Contents?: true

Size: 493 Bytes

Versions: 7

Compression:

Stored size: 493 Bytes

Contents

---
title: Hiding Dashboards from the Sidebar
---

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

```ruby
# 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.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 docs/guides/hiding_dashboards_from_sidebar.md
administrate-1.0.0.beta2 docs/guides/hiding_dashboards_from_sidebar.md
administrate-1.0.0.beta1 docs/guides/hiding_dashboards_from_sidebar.md
administrate-0.20.1 docs/guides/hiding_dashboards_from_sidebar.md
administrate-0.20.0 docs/guides/hiding_dashboards_from_sidebar.md
administrate-0.19.0 docs/guides/hiding_dashboards_from_sidebar.md
administrate-0.18.0 docs/guides/hiding_dashboards_from_sidebar.md