How do I get Rails Ajax to work using ujs Report spam Denswami asked March 18, 2019 5:20am in Javascript Denswami March 18, 2019 5:20am Report Hello, I am trying to user ajax on rails using the ujs library. I am calling the new controller action,with the remote: true property, however the request is being processed as JSON instead of JS. Reply Join the discussion Create an account Log in