title: Rails rescue if there's an error, contnue otherwise
body: <p>I've got a controller, where I want to rescue an exception, if it occurs, and redirect to a page, but continue on with the rest of the code if it doesn't. This is what i've got at the moment:</p>
  
  <pre><code>def confirm
  
  rescue ActiveRecord::RecordInvalid
    redirect to "/used-postcode"
  else
  
  ----rest of code----
  
  end
  </code></pre>
  
  <p>What have I done wrong?</p>