I can't figure out how to add CSS to my Ruby On Rails code.
This is my index.html.erb file where I attempt to include the stylesheet.
<!DOCTYPE html>
<html>
<head>
<%= stylesheet_link_tag "app\assets\stylesheets\welcome.scss" %>
</head>
<body>
<h1>Welcome To Dot</h1>
<p>Make Life Easier</p>
</body>
</html>
Inside of the assets\stylesheets folder I have a welcome.scss file:
h1{
font-size:30px;
font-weight: bold;
font-family: fantasy;
color: darkgoldenrod;
text-align: left;
}
The body shows up but does not have any styling.
application.html:
<!DOCTYPE html>
<html>
<head>
<title>Dot</title>
<%= stylesheet_link_tag 'default', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'default', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>
When leave it as default, I do not see any CSS in my code. When I change it to application, i get the error.