Yea, guilty. This is line for line how they recommend doing it in their sample project (except they're using the new ```before_action``` hook.