0

I installed Prismjs via yarn:

yarn add prismjs

Then in my app/javascript/application.js I added:

import Prism from 'prismjs';

and in my app/assets/stylesheets/application.scss I have added:

@import '~prismjs/themes/prism.css';

and rails

rails assets:precompile

and turned the server on

Loading to a page that now uses this, I get an ActionController Routing Error. No Route matches GET /assets/prismjs/themes/prism.css.

Is there a step I missed with the integration?

Patrick Vellia
  • 399
  • 2
  • 9

0 Answers0