TinyMCE GZip Compressor Ruby on Rails Plugin - Take 3
One of the coolest Doodlekit blogs I've seen is Tall Matt's Travels, where Matt Olson chronicles is non-stop trip around the world. Matt was tired of corporate america (can't blame him since he worked at Cerner), and left it all to pursue his dream. It's quite amazing actually.
Anyway, Matt has been blogging through various Internet cafe's, and recently had a problem with the WYSIWYG. The problem was that the particular browser he was using did not support gzip compression. I assumed we where safe from this problem, but then Matt had to go to Antartica!
This is good though, cause it force me to finish the last piece of the TinyMCE Gzip Compressor. Before I couldn't support conditional Gzip compression, since Rails' caching stuff doesn't allow after_filter's. I ended up having to copy the caching code and massage in some gzip stuff to get it to work right.
Here it is.
TinyMCE GZip Compressor Ruby on Rails Plugin
To install it, extract the plugin to vendor/plugins. The path should look like RAILS_ROOT/vendor/plugins/tiny_mce_gzip.
Add the following line to routes.rb
I've tested this in Rails 1.1.6 and 1.2.3.
I've also created a separate page specifically for the plugin. If you're going to link to it, please use this url.