I\'m having an issue with jQuery on Rails 3.2.8. I\'ve installed the jquery-rails gem and my application.js has the following:
//= require jquery
//= require
Fixed it!
in application.html.erb, I changed the ordering of these two lines from:
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
to:
<%= javascript_include_tag "application" %>
<%= stylesheet_link_tag "application", :media => "all" %>
Now it works! I'm not quite sure why though, can anybody explain?