Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] add authenticity_token in auto_complete

#154

I am using Rails 2.0.2 with auto_complete plugin

http://svn.rubyonrails.org/rails...

But even the example doesn't work. After googling, I found some discussions:

http://www.ruby-forum.com/topic/...

So, It seems this problem has been there for about half of a year.

I would like to create this ticket for fixing this bug in auto_complete/auto_complete_macros_helper.rb

Please see the patch in attachment

Reported by Zhang Jun · May 9th, 2008 @ 08:47 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Michael Schuerig
    Michael Schuerig

    The root problem is in scriptaculous. It uses POST requests where GET is appropriate. The former are checked against the authenticity token, the latter are not.

    Related Tickets

    May 9th, 2008 @ 11:26 AM

  2. Pratik
    Pratik
    • State changed from new to invalid

    Please create this ticket in Rails Plugins project - http://rails.lighthouseapp.com/p...

    Thanks.

    May 11th, 2008 @ 08:06 PM

  3. Zhang Jun
  4. bingbing
    bingbing
    • Tag set to patch, request-forgery-protection, scriptaculous

    March 26th, 2011 @ 01:43 AM