> > > Hello all,
> > > I am attempting to add some jquery to an application that I am
> > > but I am having trouble getting my newly created .js file to load. I
> > > tried manually requiring my file in the application.js but it still
> > > not seem to load. Is there anything else that I can check to see why
> my .js
> > > file is not loading?
> > > So far after adding my .js file, I have checked the html source and
> > > looked in the firebug console to see if it loaded and it is not there.
> > > for a second measure to see if the file is loaded but I just can't
> seem to
> > > find it I added an alert to the the .js file I wanted loaded and it
> > > executed.
> > > I welcome any ideas on how I can resolve this issue. At this moment I
> > > at a stand still till I can understand whats going on :-/
> > Some generic questions that can focus the problem.
> > In which directory is your new .js file exactly?
> > How did you try to "... I have tried manually requiring my file in the
> > application.js ..."
> > exact code snippet.
> > Are you aware that these lines
> > ...
> > //= require jquery
> > //= require jquery_ujs
> > //= require jquery-ui
> > //= require_tree .
> > are not comments, but determine which code is included for building the
> > assets ?
> Yes I am aware of those lines and I did not remove any of those lines
> or modify them. When I placed my .js file in the correct location I
> was under the impression that //= require_tree . would pick up that
> file so that I would not have to add it manually.
Yes it should. I just added a test.js for fun I see this in the source of
I never saw my individual .js files. The one I am creating is called
confirmation.js which that was not loaded.
Is application.js loaded correctly ? Like this:
I actually don't see my application.js file either. I am pretty sure
before I upgraded to rails 3.1.3 from 3.1.0 I at least saw my
application.js file. So now I am even more confused.