If you can sign up for the gym online, then you need to be able to cancel online. That's how this rule is meant to work for all kinds of merchants. Gyms would still be free to pull their usual car-salesman shenanigans on cancellation if they're willing to only take new subscriptions on location and not online, too.