Some controller filters:
before_filter :require_logged_in, :only => [:create, :new,
before_filter :init_players, :only => [:create, :new, :confirm]
The first one, you guessed it, redirects a user if he’s not logged in.
Now when I hit this page and I’m not logged in, the 2nd filter gets
executed and throws an error, because it depends on the user being
logged in. I don’t really want to do an extra check in the init_players
method, it’s not very DRY…