From b661754b279ecf966208a32ecad925135dc8bc59 Mon Sep 17 00:00:00 2001 From: Wai-Yin Kwan Date: Tue, 1 Nov 2016 05:07:13 -0700 Subject: [PATCH] Add instructions on how to add dashboards --- docs/getting_started.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/getting_started.md b/docs/getting_started.md index 0ef9d1282c..569e96e373 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -39,3 +39,22 @@ Each `Admin::FooController` can be overwritten to specify custom behavior. Once you have Administrate installed, visit to see your new dashboard in action. + +## Create Additional Dashboards + +In order to create additional dashboards, pass in the resource name to +the dashboard generator. A dashboard and controller will be created. + +```bash +$ rails generate administrate:dashboard Foo +``` + +Add a route for the new dashboard. + +```ruby +# config/routes.rb + +namespace :admin do + resources :foos +end +```