fixes #16: Site map link broken

This commit is contained in:
albert
2011-09-13 19:20:28 -04:00
parent d954af775e
commit c9438970ce
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@
<% if CurrentUser.is_admin? %>
<ul>
<li><h1>Admin</h1></li>
<li><%= link_to("Edit User", admin_users_edit_path) %></li>
<li><%= link_to("User", admin_users_path) %></li>
<li><%= link_to("Janitor Trials", janitor_trials_path) %></li>
<li><%= link_to("IP Bans", ip_bans_path) %></li>
</ul>

View File

@@ -1,6 +1,6 @@
Danbooru::Application.routes.draw do
namespace :admin do
resources :users, :only => [:get, :put, :destroy]
resources :users, :only => [:index, :get, :put, :destroy]
end
namespace :moderator do
resource :dashboard, :only => [:show]