View Single Post
  #5 (permalink)  
Old October 23rd, 2008, 09:43 PM
lizzy lizzy is offline
Registered User
Join Date: Oct 2008
Location: , , Korea.
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post

Turn off CSRF (Cross-Site Request Forgery), it's function for security in Rails2.0.

Insert into your controller this line.
skip_before_filter :verify_authenticity_token

for example,
class LookController < ApplicationController
     def at
           @data = params[:text1]
     skip_before_filter :verify_authenticity_token

There's another solution.

It's that use the form helper method in Rails instead of <FORM> tag.

The Following User Says Thank You to lizzy For This Useful Post:
patrickst1 (January 9th, 2010)