I am running rails 3.2.11.
I am using a JS plugin (epiceditor) that requires me to have several static files that the js calls. In development, I am able to access the files via asset pipeline easily.
In production, I have already set serve static assets to be true, but it still does not show up.
config.serve_static_assets = true
The files are saved in the assets directory:
- assets
- stylesheets
- epiceditor
In Development, it works:
In production, it does not work:
JS Code being executed to insert the css:
function _insertCSSLink(path, context, id) {
id = id || '';
var headID = context.getElementsByTagName("head")[0]
, cssNode = context.createElement('link');
_applyAttrs(cssNode, {
type: 'text/css'
, id: id
, rel: 'stylesheet'
, href: path
, name: path
, media: 'screen'
});
headID.appendChild(cssNode);
}
What I see in the console:
Resource interpreted as Stylesheet but transferred with MIME type application/json: "http://www.fulfilled.in/assets/epiceditor/epiceditor.css". application.js:30
(anonymous function)