I'm a little confused even after going through the Rails Asset Pipeline tutorial. I'm trying to add the latest jquery files. Do I do this through the layout javascript_include_tag or through the application.js ?
If so what is the difference and how would I specify the actual build number if I was using //= require jquery
in the application.js
<%= javascript_include_tag "http://ajax.googleapis.com/ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", "jquery.rails.js", "application.js" %>
The above method is adding jquery twice once with the above line and then through application.js
//= require jquery
Is the application require getting the js file from the gem that's installed. In my Gemfile I have the line
gem 'jquery-rails'
So my main question is where should I be loading my specific build of jquery from.