title: Rails : render and exit immediately
body: <p>Using the omniauth gem, I am forced to define a single route callback for succesful logins, regardless of the provider :</p>
  
  <pre><code>def auth_callback 
  
          auth_data = request.env['omniauth.auth']
  
          if auth_data.has_key('something')
              process_one(auth_data)
          else
              process_two(auth_data)
          end
  
          # No view is available here
  
  end
  
  
  def process_one
      # do something then render view for process_one
      return
  end
  
  def process_two
      # do something then render view for process_two
      return
  end
  </code></pre>
  
  <p>How can I prevent the controller from returning to the auth_callback method and try to display the corresponding view (which does not exist) ? Treatment should be considered as complete once the process_one or process_two methods have returned.</p>