title: Multiple rails resource routes split across scope
body: <p>Im having some issues trying to split up a controller based on scope.</p>
  
  <p>My code looks like this </p>
  
  <pre><code>  scope '/admin' do
      resources :pages, only: [:index, :create, :new, :edit, :update, :destroy]
    end
  
    resources :pages, only: [:show]
  </code></pre>
  
  <p>Ideally, Id just like to have the show page not behind the admin scope, however when I call <code>page_path(1)</code>, it routes to <code>/admin/pages/1</code>, not <code>/pages/1</code>.</p>
  
  <p>What is the easiest way to work around this issue? </p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>Updated with routes</p>
  
  <pre><code>pages_path  GET /admin/pages(.:format)  pages#index
  POST    /admin/pages(.:format)  pages#create
  new_page_path   GET /admin/pages/new(.:format)  pages#new
  edit_page_path  GET /admin/pages/:id/edit(.:format) pages#edit
  page_path   PATCH   /admin/pages/:id(.:format)  pages#update
  PUT /admin/pages/:id(.:format)  pages#update
  DELETE  /admin/pages/:id(.:format)  pages#destroy
  GET /pages/:id(.:format)    pages#show
  root_path   GET /   pages#main
  </code></pre>
  
  <p>And view: </p>
  
  <pre><code>&lt;% @pages.each do |page| %&gt;
      &lt;%= link_to page.title, page_path(page) %&gt;
  &lt;% end %&gt;
  </code></pre>