Question about routes and generated methods

Hi all,

I have a trouble with generated methods “_url" and "_path”.
in the routes.rb I have -
map.namespace(:admin) do |admin|
admin.resources :categories
end

and “categories” controller in the “controllers/admin/”

in the CategoriesController I wrote some method, “astree” like example
but I cant see any method like admin_categories_astree_url (*_path)

what I’m doing wrong?

thanks