So I'm trying to get some basic jQuery code with Rails working, but it doesn't seem to be working out. I've looked around and it seems like I'm following all of the directions correctly and have tried it in multiple browsers with no avail. Essentially, I'm just trying to slide up a div on document ready, but it just stays there :(
<%= javascript_include_tag ['jquery-1.3.2', 'application'], :cache => true %>
<%= stylesheet_link_tag 'stylesheet' %>
<script type="text/javascript">
$(document).ready(function () {
$('#login').hide("slide", { direction: "up"}, 5000);
});
</script>
<div id="container">
<div id="left_nav">
<p>Core Functions Will Go Here</p>
</div>
<div id="headertop"></div>
<div id="logoheader">
<%= link_to image_tag("vitaallogo.png"), root_path %>
</div>
<div id="user_nav">
<% if current_user%>
<%= link_to "Logout", logout_path %>
<% else %>
<%= link_to "Register", {:controller => 'user', :action => 'new'}%> |
<%= link_to "Login", login_path %>
<% end %>
</div><br />
<%= yield %>
</div>
<div id="login">
<strong>nonononononononono</strong>
</div>
Any information anyone can provide would be appreciated!