I need help integrating a wrap Bootstrap theme in Rails. If its not asking too much a more in depth step by step would be great. I always feel like small details are left.
I purchased http://wrapbootstrap.com/preview/WB02634G3 and can't get some of the styling/JavaScript to work correctly.
- I have added all my files to the respective assets folder and tried requiring each file name in the application.js/application.css file. Like this example below.
//= require theme
- For the images I've renamed them to mostly "/assets/showcase1.png" In some cases I found that this format works too "../images/showcase.png"
Here is what my application.html.erb file looks like.
<!DOCTYPE html>
<html>
<head>
<title>DPL</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%=s tylesheet_link_tag "application", :media=>"all" %>
<%=j avascript_include_tag "application" %>
<%=c srf_meta_tags %>
<!-- Styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/theme.css">
<link rel="stylesheet" href="css/index.css" type="text/css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/lib/animate.css" media="screen, projection">
</head>
<body>
<body class="pull_top">
<div class="navbar transparent navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.html">
<strong>DPL</strong>
</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li><a href="index.html" class="active">HOME</a></li>
<li><a href="about-us.html">ABOUT US</a></li>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
PAGES
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="features.html">Features</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="portfolio-item.html">Portfolio Item</a></li>
<li><a href="coming-soon.html">Coming Soon</a></li>
<li><a href="sign-in.html">Sign in</a></li>
<li><a href="sign-up.html">Sign up</a></li>
<li><a href="backgrounds.html">Backgrounds</a></li>
</ul>
</li>
<li><a href="pricing.html">PRICING</a></li>
<li><a href="contact.html">CONTACT US</a></li>
<li><a href="blog.html">BLOG</a></li>
<li><a class="btn-header" href="sign-up.html">Sign up</a></li>
<li><a class="btn-header" href="sign-in.html">Sign in</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<%=y ield %>
</div>
</body>
</html>
I've added these to my gem file.
gem 'libv8'
gem 'twitter-bootstrap-rails'
gem 'bootswatch-rails'