Skip to content

Instantly share code, notes, and snippets.

@probablykabari
Last active August 29, 2015 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save probablykabari/c10333de6be820e41bbf to your computer and use it in GitHub Desktop.
Save probablykabari/c10333de6be820e41bbf to your computer and use it in GitHub Desktop.
Foundation Apps with Rails
{
"directory": "vendor/assets/bower_components"
}
# Angular
#= require angular/angular.js
#= require angular-animate/angular-animate.js
#= require angular-ui-router/release/angular-ui-router.js
# Foundation Components
#= require fastclick/lib/fastclick.js
#= require hammerjs/hammer.js
#= require tether/tether.js
#= require viewport-units-buggyfill/viewport-units-buggyfill.js
#= require foundation-apps/dist/js/foundation-apps.js
#= require foundation-apps/dist/js/foundation-apps-templates.js
config = ($stateProvider, $urlProvider, $locationProvider, IconicProvider) ->
$urlProvider.otherwise('/')
$locationProvider.html5Mode
enabled: false
requireBase: false
$locationProvider.hashPrefix('!')
# change iconic path so icons work
IconicProvider.setAssetPath('/assets/foundation-apps/iconic')
run = ->
FastClick.attach(document.body)
# Define application
angular.module('teachers.application', [
'ui.router',
'ngAnimate',
'foundation',
'foundation.dynamicRouting',
'foundation.dynamicRouting.animations'
]).config(config).run(run)
config.$inject = ['$stateProvider', '$urlRouterProvider', '$locationProvider', 'IconicProvider']
@probablykabari
Copy link
Author

This is what got Foundation Apps working for me with Rails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment