check out the Guard Method pattern.

`redirect '/ if not_logged_in?`