title: ActiveRecord::RecordNotFound in PostsController#show clicking a link
body: <pre><code>&lt;li&gt;&lt;%= link_to('More Commented', posts_morecommented_path) %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>ActiveRecord::RecordNotFound in PostsController#show
  
  Couldn't find Post with id=morecommented
  
  Request
  
  Parameters:
  
  {"id"=&gt;"morecommented"}
  </code></pre>
  
  <p>Where am I doing the mistake?</p>
  
  <p>postscontroller#show action</p>
  
  <pre><code>def show      @post = Post.find(params[:id])      ...         end
  </code></pre>
  
  <p>morecommented.html.erb</p>
  
  <pre><code>&lt;% @moreCommented.each do |t| %&gt;
      &lt;%= link_to t.title, :controller =&gt; '/posts', :action =&gt; 'show', :id =&gt; t.id %&gt;&lt;br/&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>rake routes</p>
  
  <pre><code>post GET    /posts/:id(.:format)           {:action=&gt;"show", :controller=&gt;"posts"}
  ....      
  posts_morecommented        /posts/morecommented(.:format) {:controller=&gt;"posts", :action=&gt;"morecommented"}
  </code></pre>
  
  <p>routes.rb:</p>
  
  <pre><code>  resources :posts
    match "posts/:id/categ" =&gt; "posts#categ"
    match "posts/:id/tag_posts" =&gt; "posts#tag_posts"
    match "posts/searcharchive" =&gt; "posts#searcharchive"
    match "posts/morecommented" =&gt; "posts#morecommented"
  </code></pre>