title: Ruby on rails, render 404 when type post id
body: <p>Post model change to URL parameters to title </p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
   def to_param
   "#{id}-#{title}"
   end
  end
  </code></pre>
  
  <p>When any one type <code>http://0.0.0.0:3000/posts/4</code> it redirect to belong particular post </p>
  
  <p>When any one type post id, How redirect to 404 page?</p>