I am trying to create a Rails 4 application using the Canvas theme from Themeforest and it runs my ass.
I was looking for several ways to put CSS / JS in the correct folders, and I even had success with it using this tutorial . Yes!
When I try to use the same method with the Canvas theme, all hell breaks. The topic contains the following:
Canvas-Theme/
- css/
- fonts/
- (a bunch of custom fonts)
- animate.css
- bootstrap.css
- calendar.css
- camera.css
- colors.css
- colors.php
- dark.css
- font-icons.css
- fonts.css
- magnific-popup.css
- nivo-slider.css
- responsive.css
- vmap.css
- images/
- (a bunch of images)
- js/
- canvas.slider.fade.js
- events-data.js
- functions.js
- jquery.calendario.js
- jquery.camera.js
- jquery.elastic.js
- jquery.gmap.js
- jquery.js
- jquery.mousewheel.min.js
- jquery.nivo.js
- jquery.vmap.js
- plugins.js
- (tons of HTML templates)
- style.css
- style.less
In my Rails application, I use the default installation (except mysql), which includes the following stones:
gem 'rails', '4.1.7'
gem 'mysql2'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'tzinfo-data', platforms: [:mingw, :mswin]
I dumped all CSS files in
app/assets/stylesheets/
and all js in
app/assets/javascript/
I also created a folder with fonts and put included fonts there
app/assets/fonts/
Here is my application.js:
Here is my application.css
*= require_tree .
*= require_self
Canvas-Theme style.css, stylesheets. , .
HTML index.html.erb, . , , - .
,
- jquery.js, , Rails ?
- bootstrap "bootstrap.css"?
!