I downloaded rails.js here and included it in views/layouts/application.html.erbalong with jQuery:
<%= javascript_include_tag 'jquery-1.4.4.min.js', 'rails.js' %>
<%= csrf_meta_tag %>
However, when loading the page I received the following error in the browser console (I use the latest Firefox):
Error: syntax error
Source File: http://localhost:3000/javascripts/rails.js?1292414064
Line: 6
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
What am I doing wrong?
source
share