UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: res.json is not a function console.log('Server is listening on http://localhost:8080');下面是我的controller.js
dataType: "JSON" //I need to pass back values from the controller to JS. Do I use JSON?def get_aj format.json{render :json => "we got here" } //Do I return .js