I am new to Rails and have been struggling to fix this issue despite searching for an answer.
I have created a new app and I am trying to migrate a Theme Forest Bootstrap template into the app. I thought it would be quite simple but I have failed so far.
The files have the following code:
app/views/layouts/application.html.erb
<head>
<!-- Meta Tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Title -->
<title>Site</title>
<!-- Fonts -->
<link rel="stylesheet" type="text/css" href='http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,700,900,700italic,500italic'>
<!-- Stylesheets -->
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<link rel="stylesheet" href="css/ie.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="css/fontello-ie7.css">
<![endif]-->
<%= csrf_meta_tags %>
</head>
app/assets/stylesheets/application.css
*= require_self
*= require_tree .
*= require bootstrap.min
*= require perfect-scrollbar
*= require style
*= require flexslider
*= require fontello
*= require animation
*= require owl.carousel
*= require owl.theme
*= require chosen
*/
app/assets/javascripts/application.js
//= require_tree .
//= require modernizr.min
//= require jquery-1.11.0.min
//= require jquery-ui.min
//= require jquery.raty.min
//= require perfect-scrollbar.min
//= require zoomsl-3.0.min
//= require jquery.fancybox.pack
//= require jquery.themepunch.plugins.min
//= require jquery.themepunch.revolution.min
//= require flexslider.min
//= require jquery.iosslider.min
//= require jquery.nouislider.min
//= require owl.carousel.min
//= require chosen.jquery.min
//= require bootstrap.min
//= require turbolinks
For some reason this fails to load what I think is bootstrap-min.js.
I can get the page to work correctly if I remove the stylesheet_link_tag
tag and replace the css links in the application.html.erb file to reflect the following:
<link rel="stylesheet" href="assets/bootstrap.min.css">
<link rel="stylesheet" href="assets/perfect-scrollbar.css">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/flexslider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="assets/fontello.css">
<link rel="stylesheet" href="assets/animation.css">
<link rel="stylesheet" href="assets/owl.carousel.css">
<link rel="stylesheet" href="assets/owl.theme.css">
<link rel="stylesheet" href="assets/chosen.css">
I have a feeling I will be slated for not knowing but remember I am new to this and I've got to start somewhere!