title: Rails route if no route matched
body: <p>Is there a solution to redirect the user to a specific controller#action if no route matched? I had a "last rule" like this:</p>
  
  <pre><code> match ":rest" =&gt; "application#notfound", :constraints =&gt; { :rest =&gt; /.*/ }
  </code></pre>
  
  <p>to redirect all "other" stuff to application#notfound. The problem is that plugins with own routes where set <em>below</em> shis rule and never gets called.</p>