HI Paul,

On Thu, Feb 17, 2011 at 9:01 AM, paul <p...@nines.org> wrote:
> I'm using exception_notifier to get an email when a 500 error occurs
> in production. Lately I'm seeing a lot of nonsensical POSTs show up
> that cause an InvalidAuthenticityToken error. All the fields contain
> random characters. (For instance,  "search_title"=>"BHQWTZpjGeb")
>
> Is there a way to detect them and not send the email, while still
> sending the email in all other cases? I don't want to get used to
> these emails and miss one that is an actual bug in production.

I'm not sure what the interplay with the exception_notifier would be
but a rescue_from before filter will let you specifically handle the
InvalidAuthenticityToken exceptions.

HTH,
Bill

-- 
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