# Token\_tag in Flash?

**URL:** <https://www.ruby-forum.com/t/token-tag-in-flash/127626>\
**Category:** Rails\
**Created:** [January 30, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/token-tag-in-flash/127626 "2008-01-30T23:13:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 30, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/token-tag-in-flash/127626/1 "2008-01-30T23:13:22Z")

</div>

Yo,  
I’ve got this data POSTing from a Flash App and I need to figure out  
how this little \<%= token\_tag %\> works so I can give the Flash the  
proper validation. See, I get this  
ActionController::InvalidAuthenticityToken because you know, gotta  
defend those POSTs, but how do I get the toke into my Flash?

I’m somewhat new, so if there is some way obvious easier way then let me  
know.

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 30, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/token-tag-in-flash/127626/2 "2008-01-30T23:54:21Z")

</div>

On 1/30/08, Di Mo [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yo,

Sup…

> I’ve got this data POSTing from a Flash App and I need to figure out  
> how this little \<%= token\_tag %\> works so I can give the Flash the  
> proper validation. See, I get this  
> ActionController::InvalidAuthenticityToken because you know, gotta  
> defend those POSTs, but how do I get the toke into my Flash?
> 
> I’m somewhat new, so if there is some way obvious easier way then let me  
> know.

I’ve just been adding

:form\_authenticity\_token =\> form\_authenticity\_token

to my url\_for params.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
