On 27 Jan 2011, at 08:06, Fearless Fool <li...@ruby-forum.com> wrote:
> Frederick Cheung wrote in post #977813: >> Have you got the rails js loaded that detects those attributes and >> actually does something with them? > > @Fred: As I alluded to in the OP, I'm suspicious that I may have messed > up the default Rails JS when I included JQuery. My > app/views/layouts/application.html.erb file contains: > > <head> > ... > <%= javascript_include_tag :defaults %> > </head> > > ... and the resulting HTML looks like this: > > <head> > ... > <script src="/javascripts/jquery.min.js?1295771209" > type="text/javascript"></script> > <script src="/javascripts/rails.js?1295934227" > type="text/javascript"></script> > <script src="/javascripts/application.js?1296109843" > type="text/javascript"></script> > </head> > > Is that what you'd expect it to be? The default rails.js that ships with Rails 3 is designed to work with Prototype; you should replace it with one written to work on jQuery, if you haven't already: https://github.com/rails/jquery-ujs Chris -- 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.