title: Rails 5.1: Globbing doesn't work?
body: <p><em>routes.rb</em>  </p>
  
  <pre><code>resources :posts
  get '/posts/*missing', to: 'posts#missing'
  </code></pre>
  
  <p>/posts/1 redirects to <code>posts#show</code>, but /posts/asdf doesn't redirect to <code>posts#missing</code><br>
  <strong>Globbing</strong> doesn't work here. Why?
  <a href="https://i.stack.imgur.com/jpbAg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jpbAg.png" alt="image"></a>
  I'm using Rails 5.1, saw a tutorial on 5.0 with the exact same config and the globbing catched the invalid ID.<br>
  I know that I can use <code>rescue_from</code>, but I'd like to do that through routes.rb, how would I do that?</p>