Fix [undefined method 'request_uri'] error