I’ve got the following problem:
With this method i check if a user is logged in. If not, he will be
redirected to home:
Now the problem is: When i call this method in an other method where
is a next redirect_to or a render-command, the error “Can only render
or redirect once per action” occures.
Is there something like the “die()”-Command in PHP for stopping the
execution-process after the first redirect?
Anyone an idea?