Monthly Archives: December 2007

Rails Gracefully Degrading Javascript link_to for post / non-get methods

This works at least on Rails r8440. Just stick the code somewhere it gets loaded – I put it in vendor/plugins/graceful_link_to/init.rb # graceful_link_to # Jason Ling # http://jason.lah.cc # # This hacks link_to to produce an alternative button_to that shows … Continue reading

Posted in Rails | 38 Comments

InvalidAuthToken? Forgery protection is incompatible with cached forms

Obviously, since caching forms = caching the auth token as well. Not only forms though, anything that results in a non-get request – AJAX links, delete/post/put links, etc etc.

Posted in Rails | 36 Comments