Create before_action in controller