Rails Asset Pipeline

51 views
Skip to first unread message

Dan Tappin

unread,
Jun 19, 2020, 12:15:34 AM6/19/20
to jsTree
It seems that when I deploy to production Rails is pre-compiling the images and when the jstree css calls 'url("32px.png")' the server calls '/app-assets/32px.png' which will always fail because the server is expecting the '/app-assets/32px-xxxxxxxxxxxxxxxx.png' precompiled asset pipeline url.

I can manually dump the icon files in the public folder and hack the css but the JS seem to still trigger code for the old path.  Can I get JS tree to reference the Rails asset pipeline urls?
Reply all
Reply to author
Forward
0 new messages