My goal is to integrate a theme from wrapbootstrap.com
into my rails 4.1 application.
After creating a new app with rails 4 scaffolding, I proceeded to extract the downloaded zip directory which contains 4 directories and an index.html file. I then placed them in their respective locations:
css
was moved to vendor/assets/stylesheets
, js
was moved to vendor/assets/javascripts
, font
was moved to vendor/assets/fonts
, and img
was moved to vendor/assets/images
.
Subsequently, I added the following code to my app/assets/stylesheets
file:
*= require_tree ../../../vendor/assets/stylesheets/.
and this snippet to my app/assets/javascripts
file:
//= require_tree ../../../vendor/assets/javascripts/.
Despite having what I believed to be all necessary files in place, when I copied over index.html
to my app and viewed the corresponding page in my browser, only plain text appeared - The css/javascript/image files were not functioning correctly.
Upon inspection using Google Chrome developer tools, multiple errors like this one were displayed:
GET http://localhost:3000/vendor/assets/stylesheets/bootstrap.min.css 404 (Not Found)
What steps am I overlooking to successfully implement this theme?
EDIT:
The structure of my html file where I reference the files is as follows:
<!-- Styles -->
<!-- Bootstrap CSS -->
<link href="../../../vendor/assets/stylesheets/bootstrap.min.css" rel="stylesheet">
<!-- Font awesome CSS -->
<link href="../../../vendor/assets/stylesheets/font-awesome.min.css" rel="stylesheet">
<!-- Pretty Photo -->
<link href="../../../vendor/assets/stylesheets/prettyPhoto.css" rel="stylesheet">
<!-- Animate -->
<link href="../../../vendor/assets/stylesheets/animate.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="../../../vendor/assets/stylesheets/style.css" rel="stylesheet">