簡體   English   中英

Ruby on Rails 3 javascript_include_tag

[英]Ruby on Rails 3 javascript_include_tag

當我在標題application.html.erb將此作為我的javascript_include_tag時:

<%= javascript_include_tag :defaults %>

我可以在submit_tag上成功使用disable_with ,但是當我將其更改為:

<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"%>
<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" %>
<%= javascript_include_tag "application" %>

..為了使用jQuery日歷,我不能再使用disable_with了。 它不再起作用了。

有任何想法嗎?

您缺少rails.js,也將其添加到了include中

<%= javascript_include_tag "rails" %>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM