Fix request.request_uri -> request.fullpath, changed in Rails 3