title: Deleting from a namespace
body: <p>I have setup a admin namespace in order to access models in the admin area: <code>/admin/pages</code></p>
  
  <p>However i have the following problem
  i cant get the delete function to work under <code>Admin::PageController</code> for example or any of my models.</p>
  
  <p>Does anyone know how to do this.
  I have the following:</p>
  
  <p>Admin::PageController I have the following</p>
  
  <pre><code>def destroy
     @page = Page.find(params[:id])
     @page.destroy
  
     respond_to do |format|
       format.html { redirect_to admin_pages_url }
       format.json { head :ok }
     end
  end
  </code></pre>
  
  <p>Then on my page index file where i want a link to delete the record i have the following: (/admin/pages)</p>
  
  <pre><code>&lt;%=link_to admin_page_path(page), :class =&gt; 'ico del' do %&gt;
    &lt;%='Delete'%&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Does not seem to work. Anyone know how to get this to work?</p>