Have you cached your view by any chance? That would mean that the 
authenticity_token in the view is stored in a cached file and not really 
dynamic?

Cheers,
Aditya

Tom Ha wrote:
> Hi there,
> 
> I have my first Rails app running and I regularly get the following
> "logged_exception" error message:
> 
>   "ActionController::InvalidAuthenticityToken"
> 
> Has anybody an idea what might cause this problem? Could it somehow be a
> "time out" error (like an "AuthenticityToken" which might expire after a
> certain time, or something along those lines)?
> 
> Any idea how that error could be prevented from occurring?
> 
> The "backtrace" always starts like this:
> 
> =================
> /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/request_forgery_protection.rb:79:in
> `verify_authenticity_token'
> 
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:178:in
> `send'
> 
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:178:in
> `evaluate_method'
> 
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:166:in
> `call'
> ...
> =================
> 
> Thanks for any help with this!
> Tom

-- 
Posted via http://www.ruby-forum.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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to