app/views/routes/_form.html.slim
#route
= javascript_tag do
| window.routeFormAction = "#{form_action}";
| window.redirectUrl = "#{redirect_url}";
| window.routeSubmitUrl = "#{route_submit_url}";
| window.fetchRouteUrl = "#{route_fetch_url}.json?v=#{Time.now.to_i}";
| window.fetchUserPermissionsUrl = "#{url_for(action: 'fetch_user_permissions', controller: 'routes')}?v=#{Time.now.to_i}";
| window.fetchOppositeRoutesUrl = "#{url_for(action: 'fetch_opposite_routes', controller: 'routes')}?route_id=#{@route.id}&v=#{Time.now.to_i}";