Add before_action snippet (Rails)