While working on my Ruby on Rails application, I am trying to customize the design to resemble (which can be downloaded from ). However, I am facing an issue where the style sheets are not being applied.
I have moved the style sheets from the bootstrap/css
folder to my app/assets/stylesheets
folder, and did the same for the files from thecss
folder as well.
Subsequently, I copied the HTML code from the index.html
file into my view:
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Admin Theme v3</title>
</head>
<body>
<div class="header">
<div class="container">
<div class="row">
<div class="col-md-5">
<!-- Logo -->
<div class="logo">
<h1><a href="index.html">Bootstrap Admin Theme</a></h1>
</div>
</div>
<div class="col-md-5">
<div class="row">
<div class="col-lg-12">
<div class="input-group form">
<input type="text" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button class="btn btn-primary" type="button">Search</button>
</span>
</div>
</div>
</div>
</div>
<div class="col-md-2">
<div class="navbar navbar-inverse" role="banner">
<nav class="collapse navbar-collapse bs-navbar-collapse navbar-right" role="navigation">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">My Account <b class="caret"></b></a>
<ul class="dropdown-menu animated fadeInUp">
<li><a href="profile.html">Profile</a></li>
<li><a href="login.html">Logout</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
<div class="page-content">
<div class="row">
<div class="col-md-2">
// Content goes here
</div>
</div>
<footer>
<div class="container">
<div class="copy text-center">
Copyright 2014 <a href='#'>Website</a>
</div>
</div>
</footer>
// Include necessary scripts
</body>
</html>
However, the above content is displaying as unformatted text. Can someone please guide me on what I might be doing wrong?
I'm new to Bootstrap and tried following the instructions outlined in Installing Bootstrap 3 on Rails App. I added the lines:
//= require bootstrap
to my
assets/javascripts/application.js
*= require bootstrap
to my assets/stylesheets/application.css
Despite adding these lines, the issue still persists. Any help would be appreciated!