title: custom route in rails 4 not working
body: <p>I've created custom routes to route to News model</p>
  
  <pre><code>    resources :news, only: [:index] do
       collection do
        get 'page/:page', action: :index
       end
      end
  
      get "news/:id(/p/:p)", to: 'news#show', as: 'news'
  </code></pre>
  
  <p>generate url like this</p>
  
  <pre><code>http://localhost:3000/news/4/page/2  index.html.erb  is right
  </code></pre>
  
  <p>and show.html.erb </p>
  
  <pre><code>&lt;%= link_to 'news', news_path(@news, '2')%&gt;
  
  I hope generate url http://localhost:3000/news/4/p/2  
  
  but generate http://localhost:3000/news/4?p=2
  </code></pre>