<% base_path = Rails.application.config.assets.prefix + '/dynaspan/' base_path = Rails.application.config.action_controller.relative_url_root + base_path if Rails.application.config.action_controller.relative_url_root %> var DYNASPAN_BASEPATH = "<%= base_path %>";