TODO: make gem for this
This was tested using Rails 3.2 and Rails 4.0 on Ruby 2.0.0.
-
Set the install directory for Bower components:
// .bowerrc
| class @GoogleAnalytics | |
| @load: -> | |
| # Load the analytics code | |
| window['GoogleAnalyticsObject'] = 'ga' | |
| window['ga'] = window['ga'] || -> | |
| (window['ga'].q = window['ga'].q || []).push arguments | |
| window['ga'].l = 1 * new Date() | |
| # Add the script |
| ## | |
| Lets say we have YoloFont.otf | |
| 1. We add it to vendor/assets/fonts/ folder | |
| 2. Me personaly creates a file named fonts.css.scss in app/assets/stylesheets | |
| In it I have | |
| @font-face{ | |
| font-family: 'YoloFont'; |
| $("#selectBox").append('<option value="option6">option6</option>'); |