javascript - JS include tag not being removed from dom, even though it has been removed from the file -


i'm building rails app, , i'm having issue i'm getting 2 confirmation boxes popping up, rather 1 when use :confirm.

i've come conclusion result of rails.js being included twice, once in layout, , once in application.js. however, when deleted <%=javascript_include_tag "rails.js"%> application.html.erb, , view page source on app still shows being included.

i tried deleting browser cache, restarting browser, going in incognito mode, cleaned assets pipeline, made sure config.assets.debug = false. ideas on how alleviate issue? thanks.

head portion of application.html.erb:

    <head>        <%= csrf_meta_tag %>         <meta charset="utf-8">         <!-- [if ie]>  <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"><![endif]-->         <title>title</title>         <meta name="description" content="">         <!-- <meta name="viewport" content="width=device-width"> -->         <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">          <!-- place favicon.ico , apple-touch-icon.png in root directory --> <%= javascript_include_tag "application" %>         <%=stylesheet_link_tag("normalize")%>         <%=stylesheet_link_tag("main")%>         <%=stylesheet_link_tag("r")%>         <%=stylesheet_link_tag("webfonts/ss-standard")%>         <!--link type="text/css" href="css/jquery.jscrollpane.css"-->             <%=javascript_include_tag "vendor/modernizr-2.6.1.min"%>         <%=javascript_include_tag "//use.typekit.net/rwg2mxn.js"%>               <script type="text/javascript">try{typekit.load();}catch(e){}</script>         <%=javascript_include_tag "jquery.cookie.js"%>         <!--script type="text/javascript" src="http://platform.linkedin.com/in.js">             api_key: your_api_key_goes_here             authorize: true         </script-->         <%=javascript_include_tag "plugins.js"%>         <%=javascript_include_tag "vendor/jquery.touchswipe.min"%>         <!--script src="js/vendor/jquery.mousewheel.js"></script>         <script src="js/vendor/jquery.jscrollpane.min.js"></script-->      <%=yield :head%>      </head> 

application.js:

// manifest file that'll compiled application.js, include files // listed below. // // javascript/coffee file within directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can referenced here using relative path. // // it's not advisable add code directly here, if do, it'll appear @ bottom of // compiled file. // // warning: first blank line marks end of what's processed, blank line should // go after requires below. // //= require jquery //= require jquery-fileupload/basic //= require jquery-fileupload/vendor/tmpl //= require_tree . 

rails include js files in app/assets/javascripts, beacause of

application.html.erb

javascript_include_tag "application"

and

application.js

//= require_tree

if not want rails.js imported, have remove file app/asssets/javascript directory.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -