the show method should only select one post.  @post = Post.find_by_param(params[:id]). You are using a custom route but params[:id] is default and better stick to the defaults even in custom routes.