I fixed it. Here was the problem.

In my JavaScript include lines I had this:

<%= javascript_include_tag  :defaults, 'scriptaculous', 'prototype',
'effects', 'controls', 'date-picker', 'jquery', 'jquery.min',
'application' %>

<script>
   // Don't take this out as long as you are using the jQuery and
   Scriptacous
   libraries together. They don't play well together.
   var $j = jQuery.noConflict();
</script>

And I changed it to this:

<%= javascript_include_tag 'jquery', 'jquery.min' %>

<script>
   // Don't take this out as long as you are using the jQuery and
   Scriptacous
   libraries together. They don't play well together.
   var $j = jQuery.noConflict();
</script>

<%= javascript_include_tag  :defaults, 'scriptaculous', 'prototype',
'effects', 'controls', 'date-picker', 'application' %>

Apparently the relinquishing of this all import variable $ must be done
after I include the necessary jQuery script files but before I include
the Sciptaculous/Prototype script files.

Hopefully this helps someone.

-S

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to