On Wed, Jun 18, 2008 at 11:18 PM,  <[EMAIL PROTECTED]> wrote:
> [Forgot to send to the list]
>
> On 18 Jun 2008, at 14:58, James Carruth wrote:
>
>> I have a very simple email to next action script that creates next
>> actions in Tracks using curl.  It stopped working after I moved to the
>> newest version from github (I had previously been using the svn trunk
>> version). Tracks works fine from the web, but I get an error when I
>> try to add new next actions following the instructions on the
>> Integrations page.
>>
>> Here is what I type at the command prompt (relevant details have been
>> changed to protect the innocent)
>>
>> $curl -u username:password -d "todo[description]=Test out this new
>> installation&todo[context_id]=8" http://example.com:8000/todos.xml -i
>
> I tried your example (with details changed for my installation,
> obviously), and also got an error. Running under development, I got a
> more detailed error message, which suggested problems with the
> AuthenticityToken:
>
>  ActionController::InvalidAuthenticityToken
>
>    in TodosController#create
>
> </h1>
> <pre>ActionController::InvalidAuthenticityToken</pre>
>
> ActionPack's request_forgery_protection.rb seemed to be involved.

Actually, this is not a bug. It's due to Rails' CSRF protection.
(which is was AFAIK
introduced in Rails 2.0.1 or something)

-- 
Simon Rozet -- <[EMAIL PROTECTED]>
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to