I could not implement customer css in Ruby on Rails application. The changes that I've made locally don't shown up on the pages in Heroku.
I find similar question and one answer on it.
Even so this answer was not marked as the solution, I’ve changed files accordingly this answer and the link provided(see below).
Yet, I still could not implement customer css.
Ruby on Rails Tutorial custom CSS not showing up in app
//edited
I find that the possible reason for not shown up css is that precompile run locally(link below) and deleted as suggested file .json. But the custom.css is not implemented yet.
https://help.heroku.com/TEN5TWQ1/why-are-my-css-js-changes-not-showing-up-in-my-rails-app
‘’’ Gemfile’’’
gem 'bootstrap-sass', '3.3.6'
gem 'sass-rails', '5.0.6'
‘’’app/assets/stylesheets/application.scss’’’ -edited
@import main;
@import "bootstrap-sprockets";
@import "bootstrap";
@import "custom";
@import "styles";
@import 'colors';
@import "sessions";
@import "users";
‘’’app/assets/javascripts/application.js’’’
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require_tree .
bundle install
//edited
'''application.html.erb'''
!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<%= stylesheet_link_tag "application", media: "all",
"data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
<%= render 'layouts/shim' %>
</head>
<body>
<body>
<%= render 'layouts/header' %>
<div class="container">
<% flash.each do |message_type, message| %>
<%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
<% end %>
<%= yield %>
<%= render 'layouts/footer' %>
<%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>
<% flash.each do |message_type, message| %>
<%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
<% end %>
//custom.css.scss(first lines)
//edited
* mixins, variables, etc. */
.t-a
{
color: red;
}
//applicatio.css.scss
//edited
*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
*= require_tree .
*= require_self
*= require custom.css.scss
*/
@import "bootstrap-sprockets";
@import "bootstrap";
@import "custom";
@import "styles";
application.html.erblayout view imports a single file :application.scsswhich itself importscustom.css. Try to renameapplication.scssintoapplication.css.scssto properly show preprocessors. And also copy yourcustom.cssfile here. Also what change from your css file is not showing ? No css files attached at all ?