```coffeescript
#= require jquery
#= require jquery_ujs
#= require foundation
#= require rails.validations
#= require rails.validations.simple_form
#= require rails.validations.simple_form.fix
#= require turbolinks
#= require nprogress
#= require nprogress-turbolinks
#= require jquery.autosize
#= require globals/_functions
#= require tools/mapbox
#= require tools/nprogress

$(document).on 'ready page:load page:restore', ->
  $(document).foundation()
  $('.autosize').autosize()```

Fix bug with Foundation undefined
user
```coffeescript
#= require vendor/modernizr
#= require jquery
#= require jquery_ujs
#= require foundation/foundation
#= require foundation
#= require rails.validations
#= require rails.validations.simple_form
#= require rails.validations.simple_form.fix
#= require turbolinks
#= require nprogress
#= require nprogress-turbolinks
#= require jquery.autosize
#= require globals/_functions
#= require tools/mapbox
#= require tools/nprogress

$(document).on 'ready page:load page:restore', ->
  $(document).foundation
  $('.autosize').autosize()```
assistant