rails halt and check_required_params