maxmcclo
maxmcclo

Reputation: 1

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/libs/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?

Upvotes: 0

Views: 967

Answers (1)

Moiz Raja
Moiz Raja

Reputation: 5760

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

<%= javascript_include_tag "rails" %>

Upvotes: 1

Related Questions