开发者

Ruby on Rails 3 javascript_include_tag

When I have this as my javascript_include_tag in the head section application.html.erb:

<%= javascript_include_tag :defaults %>

I can successfully use disable_with on submit_tag, but when I change it to:

<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"%>
<%= javascript_include_tag "http://ajax.googleapis.com/ajax/l开发者_运维问答ibs/jqueryui/1.8.1/jquery-ui.min.js" %>
<%= javascript_include_tag "application" %>

..in order to use a jQuery calendar I cannot use disable_with anymore. It doesn't work anymore.

Any ideas?


You're missing rails.js add that as well to your includes

<%= javascript_include_tag "rails" %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜