그래서 Rails가 작동하는 기본 jQuery 코드를 얻으려고하고 있지만 작동하지 않는 것 같습니다. 나는 주변을 둘러 보았고 모든 지시 사항을 올바르게 따르고 있으며 여러 브라우저에서 아무런 노력없이 사용 해본 것처럼 보입니다. 기본적으로, 난 그냥 준비 문서에 사업부를 밀어하려고 해요,하지만 그것은 단지 제공 할 수있는 모든 정보는 누구나 감상 할 수jQuery가 Rails와 작동하지 않습니다.
<%= 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>
가 :(유지!
이
jRails (http://github.com/aaronchi/jrails)와 함께 프로토 타입을 사용할 수도 없습니다. – marcgg
'Magic 참조 - jQuery 바로 가기'(http://docs.jquery.com/Using_jQuery_with_Other_Libraries) 섹션을 참조하십시오.) jQuery와 Prototype 둘 다에 대한 $의 의미를 유지하는 방법은 jQuery 라이브러리를 사용하면된다. –