I am trying to connect my website to a style sheet in Ruby on Rails but I don't know how to . I have a stylesheet in my application.html.erb file but I don't know how to get to it or what the name of it is . I do have a pages.scss but when I put in css it doesn't show the changes on my website . Can someone help ?
application.html.erb:
<!DOCTYPE html>
<html>
<head>
<title>AucIt</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>
home.html.erb :
<!DOCTYPE html>
<html>
<body bgcolor="#E6E6FA">
<h1>AucIt</h1>
<nav>
<ul>
<li style="font-size: 20px"><a href="#">Sign Up</a></li>
<li style="font-size:20px"><a href="#">Login</a></li>
<li style="font-size:20px"><a href="#">List</a></li>
</ul>
</nav>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire