Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Adding a delete confirmation
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Jarkko Laine  
View profile   Translate to Translated (View Original)
 More options 25 Jan 2008, 07:05
From: Jarkko Laine <jar...@jlaine.net>
Date: Fri, 25 Jan 2008 09:05:20 +0200
Local: Fri 25 Jan 2008 07:05
Subject: Re: Adding a delete confirmation

On 25.1.2008, at 8.05, KJoyner wrote:

> Jarkko is correct, I am trying to create both an accessible link (when
> Javascript is disabled) and an AJAX request when java is enabled.

> After reading your post, I just thought to check my log to see if it
> showed anything. It does route but shows an
> ActionController::InvalidAuthenticityToken during a call to
> request_forgery_protection.

This is the new csrf killer in action :-)

You must pass the authenticity token to the link somehow (see http://edgedocs.planetargon.org/classes/ActionController/RequestForge...)
. You could for example set a header for it in the controller and then  
set the form parameter in your behaviour according to that header.

See http://edgedocs.planetargon.org/classes/ActionView/Helpers/UrlHelper....
  (click "Source") for how the Rails JS helpers populate the token in  
link_to_remote.

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google