title: Routing Issue in Rails 4
body: <p>I have created a form useing form_for -</p>
  
  <pre><code> = form_for @category, url: url_for(:controller =&gt; 'admin/category',:action =&gt; new_record ? "create" : "update"), name: 'udfFieldForm', id: 'udfFieldForm',:method =&gt;'POST', remote: true do |f|
  </code></pre>
  
  <p>controller is look like-</p>
  
  <pre><code> class Admin::CategoryController &lt; ApplicationController
     def create
     end
     def update
     end
   end
  </code></pre>
  
  <p>route defined as - </p>
  
  <pre><code>namespace :admin do
     get 'category/:action' =&gt; 'category#index', :as =&gt; :category
     resource :categories
  end
  </code></pre>
  
  <p>When i have submit  form it through an error like -</p>
  
  <p>AbstractController::ActionNotFound (The action 'category' could not be found for AdminController):</p>
  
  <p>Here category is a controller under admin directory but it's looking for category action in admin controller. here i want to call category controler.</p>
  
  <p>Please help me , where is the issue?</p>