I have added this to my config/application.rb file:
config.action_view.javascript_expansions[:defaults] = %w(jquery rails application)
and I have added this to my views/layouts/application.html.erb file:
<%= javascript_include_tag :defaults %>
But the prototype javascript files are being included and not the jQuery files when the pages are rendered. Any ideas why this is happening?
Restarted the server and that fixed the problem.