For some reason rails is not liking the following code and I am not sure why. It seems to be throwing an Uncaught Error: ExecJS::RuntimeError.
The file that it is complaining about is my schedules.js.coffee and the only code I have in file is the following:
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
jQuery ->
  $(document).on "page:change", ->
    $("#sched_date").datepicker
      changeMonth: true
      changeYear: true
      dateFormat: "yy-mm-dd"
      duration: "slow"
  return
What is wrong with this code?
 
    