Skip to content

Commit

Permalink
[#7] Adds route to admin users, and link to admin user index to the l…
Browse files Browse the repository at this point in the history
…ayout.
  • Loading branch information
fabionl committed Oct 31, 2021
1 parent c0de905 commit dd839ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<%= link_to 'Facilities', admin_facilities_path, class: 'navbar-item' %>
<%= link_to 'Users', admin_users_path, class: 'navbar-item' %>

<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# root to: "dashboard#index"
# end

resources :users

resources :facilities do
resources :schedules, only: %i[new create edit update], controller: :facility_schedules
resources :time_slots, only: %i[new create destroy], controller: :facility_time_slots
Expand Down

0 comments on commit dd839ce

Please sign in to comment.