Permalink
Browse files

changing the default js framework from prototype to jquery and adding…

… a small jquery test (changing the color of h1) to application.html.erb
1 parent 3956ac7 commit fd5ea39f4c27cc10e54acedbae92de2b767cc971 @bingeling bingeling committed Feb 5, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 app/views/layouts/application.html.erb
@@ -3,8 +3,14 @@
<head>
<title>Otwtraining</title>
<%= stylesheet_link_tag :all %>
- <%= javascript_include_tag :defaults %>
+ <%= javascript_include_tag "jquery-1.5.min.js", "jquery.rails.js" %>
<%= csrf_meta_tag %>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $('h1').css('color', '#235486');
+ });
+ </script>
</head>
<body>

0 comments on commit fd5ea39

Please sign in to comment.