I've got a Rails app that uses WYSIHTML in parts. It's controlled like so:
// richtext
if($('.richtext').length) {
var editor = new wysihtml5.Editor(document.querySelector('.richtext'), {
toolbar: 'wysihtml5-toolbar',
parserRules: wysihtml5ParserRules,
stylesheets: '/assets/wysihtml5-stylesheet.css'
});
}
This works fine locally, but wysihtml5-stylesheet.css cannot be found remotely. I've tried messing with asset pipeline/precompilation without luck. Any thoughts? It seems to have happened recently, i.e., it was working before. No settings other than what I just mentioned have been changed.
Please help.
Update
Even with asset_path the file can't be found:
stylesheets: '<%= asset_path "wysihtml5-stylesheet.css" %>'
http://domain.com/assets/wysihtml5-stylesheet-9d0d93a7a284f16a3dea08a722430b272064c192b7c57a41329d7f86a8adb7da.cssserve_static_filesoption for rails 4 and tinker with it.