jQuery makes the Delete link stop working

I have an usual index.html.erb file generated by the scaffold. If I
include jquery-1.6.2.min.js, the Delete link stops working. If I remove
jQuery, the Delete link starts working again.

Anyone experience anything similar? Do you know a solution?

Are you loading rails.js? GitHub - rails/jquery-rails: A gem to automate using jQuery with Rails

Rodrigo Alves V.

http://twitter.com/#!/rodrigoalvieira

I got this problem once, and it happened because I still have
scriptaculous
in my public/javascript!

maybe you should check it

On Thu, Aug 25, 2011 at 1:43 PM, Rodrigo Alves V.
[email protected]wrote:

“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


thiagocifani

twitter.com/thiagocifani
del.icio.us/thiagocifani
http://del.icio.us/thiagocifani

On Thu, Aug 25, 2011 at 11:32 PM, Leonel . [email protected]
wrote:

I have an usual index.html.erb file generated by the scaffold. If I
include jquery-1.6.2.min.js, the Delete link stops working. If I remove
jQuery, the Delete link starts working again.

Anyone experience anything similar? Do you know a solution?

Maybe you are using the default js library, prototype. Prototype and
JQuery
have compatibility issues. Google for how to solve it if you need to
use
both
libraries in a single page.

http://groups.google.com/group/rubyonrails-talk?hl=en.

Your problem is demonstrated here:

It sounds like you may be missing a <%= csrf_meta_tag %>. The railscast
will also show you how to include the right files for jquery.