I am using Rails 3.2 with asset pipeline. I am trying to add some processing.js to the app, the processing.js file is found fine, but the .pde file gives the error:
Uncaught Processing.js: Unable to load pjs sketch files: graphBuilder.pde ==> Invalid XHR status 404
The folder structure is usual:
RailsApp/app/assets/javascripts/pjs/graphBuilder.pde
processing.js
so I of course have an pjs.js file with
//*= require_self
// *= require_tree ./pjs
How do I make Rails see graphBuilder.pde??
Thanks!
You’d have to change the path to the graphBuilder.pde in Processing.js to
/assets/pjs/graphBuilder.pdeif I understand correctly.