On Wed, Feb 15, 2012 at 7:13 PM, Vell <[email protected]> wrote:
> Hello all, > > I am attempting to add some jquery to an application that I am developing > but I am having trouble getting my newly created .js file to load. I have > tried manually requiring my file in the application.js but it still does > 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 also > looked in the firebug console to see if it loaded and it is not there. As > 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 never > executed. > > I welcome any ideas on how I can resolve this issue. At this moment I am > 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 ../app/assets/javascripts$ cat application.js ... //= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree . are not comments, but determine which code is included for building the assets ? I presume you are now talking about dev environment ? HTH, Peter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

