title: Different redirects using CanCan
body: <p>I run a SaaS app using CanCan for authorization (actually the more-maintained CanCanCan gem), and I want to be able to distinguish between different 'types' of permission.</p>
  
  <p>E.g. if an average user accesses <code>/adminpanel</code>, that should end up with a redirect to <code>/</code> and an error flash. But if an average user accesses <code>/paid_feature</code>, I'd like to redirect them to <code>/payments/paid_feature/new</code>. It's the second one that's causing me difficulties.</p>
  
  <p>Obviously I can tell CanCan to let all users access <code>paid_feature</code> in <code>ability.rb</code>, and then confirm that they've paid (and redirect if necessary) in the paid_feature controller. But that seems unclean. It's an authorization question, so I want it to be in my <code>ability.rb</code>. Anyone know how I can do that?</p>