ActiveRecord::RecordNotFound in PostsController#show clicking a link
问题 <li><%= link_to('More Commented', posts_morecommented_path) %></li> Error ActiveRecord::RecordNotFound in PostsController#show Couldn't find Post with id=morecommented Request Parameters: {"id"=>"morecommented"} Where am I doing the mistake? postscontroller#show action def show @post = Post.find(params[:id]) ... end morecommented.html.erb <% @moreCommented.each do |t| %> <%= link_to t.title, :controller => '/posts', :action => 'show', :id => t.id %><br/> <% end %> rake routes post GET /posts/