I'm a ruby and rails novice so please have patience with me.
I have a SASS file (stats.css.scss) in rails that is loaded correctly in my development enviroment, but doesn't get loaded in my production enviroment. I know is the asset pipeline that is causing this, but have made several attempts and couldn't figure out what is wrong. Here's what I got:
In my site/app/assets/stylesheet folder I have the stats.css.scss file
The index.html.erb file is loading the SASS file like this:
<%= stylesheet_link_tag "stats", media: "all" %>
When I check the source code for the page loaded (Ctrl+U in google chrome) in development enviroment, I see this
<link href="/assets/stats.css?body=1" media="all" rel="stylesheet" />
which is what I expected, as it does look like the JS included in the asset pipeline. But in production enviroment the source code shows this
<link href="/stylesheets/stats.css" media="all" rel="stylesheet" />
Anybody can help me figure out what am I missing? Thanks!