This may not be any help, but I might learn something.
I pasted your route declaration and got, among others, these two
routes from rake routes.
auto_complete_for_user_login_admin_campaigns POST /admin/campaigns/
auto_complete_for_user_login
{:controller=>"admin/
campaigns", :action=> "auto_complete_for_user_login"}
formatted_auto_complete_for_user_login_admin_campaigns POST /admin/
campaigns/auto_complete_for_user_login.:format
{:controller=>"admin/
campaigns", :action=>"auto_complete_for_user_login"}
What route is it you don't have?
can you post the code that manually adds the route?
if you need to get rid of the admin in the route add ":name_prefix =>
nil"
auto_complete_for_user_login_admin_campaigns goes to:
auto_complete_for_user_login_campaigns
map.namespace :admin do |admin|
admin.resources :campaigns, :collection=>{ :auto_complete_for_client_name=>:post, :auto_complete_for_user_login=>:post}, :name_prefix
=> nil
end