Ruby 2.0.2, Rails 4.0.3, Sorcery 0.8.5
I tried to issue a redirect in my code, only to receive the error message that a redirect or render had already been issued.
You can call performed? in your controller to check if render or redirect_to has been called already:
performed?
render
redirect_to
performed? # => false redirect_to(login_path) performed? # => true
Read more about performed? in the Rails docs.