Mapping a resource to a subdirectory controller

My app (like so many others) has an admin section, which uses
controllers inside an admin directory. To keep it simple, I'm only
administering the User resource for now. I have a controller that
looks like this:

class Admin::UsersController < ApplicationController
  # normal scaffold methods in here

I've also added the following lines to my routes.rb file:

map.namespace :admin do |admin|
  admin.resources :users

In my admin/users/index view, I'd like to be able to use link_to to
create a delete link for each user. If I wasn't using subdirectories,
it would be like this:

<%= link_to "Delete", user, :confirm => "Are you sure?", :method
=> :delete %>

When I put this code in admin/users/index, it links to the regular
users section (not the admin one), which has no destroy method. How
can I make this link to the admin version? Do I need to hardcode the
URL into the link_to method, or is there a cleaner way that I don't
know about?


P.S. Sorry about the <code> tags. I was hoping they'd work, but I
guess not. Hopefully their intent is clear.

Figured it out. The correct code for each resource action is:

<%= link_to "Index", admin_users_path %>
<%= link_to "Show", admin_user_path(user) %>
<%= link_to "Edit", edit_admin_user_path(user) %>
<%= link_to "Delete", admin_user_path(user), :confirm => "Are you
sure?", :method => :delete %>

The users/user thing was throwing me off.