title: rails skip an after_action in a controller/method
body: <p>In my controller I have an after_action block.  I want to stop the after_action from running when the method in question fails.</p>
  
  <p>Rails 4.2, ruby 2.2</p>
  
  <p>Does anyone know how to do this in rails?</p>
  
  <pre><code>class MyController  &lt; ApplicationController
  
    after_action only: :show do
      # do so and so
    end
  
    def show
      begin
        # something really bad happens here... My Nose!
  
      rescue =&gt; e 
  
        # how do I stop after_action from running?
  
        flash[:error] = 'Oh noes... Someone make a log report'
        redirect_to '/'
        return
      end
  
      # yarda yarda yarda
  
    end
  end
  </code></pre>