On Thu, Mar 26, 2009 at 3:58 PM, Larz <wbsurf...@gmail.com> wrote:
>  I'm still learning here, but what happens is if I copy the token from
> some other action that works so I now have this:
>
>  <%= remote_function(:url => {:action => 'resize_field',
>                              :authenticity_token
> =>"sda4354326hfghgfsf-whatever"},


To make it dynamic, I would use form_authenticity_token, not the
actual value of it.

http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html#M000491



-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to