Rails REST service to lock a door