Cells and Rails 2.0 request forgery protection

If you have been using Cells much with Rails 2.0, you may have come upon a problem with Rails form helpers requiring access to ActionController’s RequestForgeryProtection methods. We’ll be incorporating a fix into Cells for this in the next couple of days, meanwhile, thanks to Paul Dix for identifying a workaround.

In your Cell controller, add this:

include ActionController::RequestForgeryProtection

def allow_forgery_protection

def request_forgery_protection_token

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s