Skip to content

Commit

Permalink
Add model counts to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jonallured committed Aug 1, 2023
1 parent ecc5f17 commit 3330ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/dashboard/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
%h2 Admin Pages
%p= link_to "Books", new_admin_book_path
%p= link_to "Gift Ideas", admin_gift_ideas_path
%p= link_to "Model Counts", admin_model_counts_path
%p= link_to "Post Bin", admin_post_bin_requests_path
%p= link_to "Project List", admin_projects_path

Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
end

namespace :admin do
get "model_counts", to: "model_counts#index"
get "model_counts", to: "model_counts#index", as: :model_counts

resources :books, only: %i[create edit new update]
resources :gift_ideas
Expand Down

0 comments on commit 3330ffa

Please sign in to comment.