I'm starting with a simple plugin called Webymize for optimizing public assets like javascript and stylesheet files. Usually, RoR programmers rely on the Rails itself to handle optimization for them which is a common mistake. Rails do merge multiple javascript and stylesheet files to one file (all.js and all.css) to speed up page load time, but the code is not yet compressed as it should be for use in the production environment. The plugin adds rake tasks for building compressed merged javascript and stylesheet files.
Installation
When it comes to the implementation of a new website feature I just love Rails :). The Webymize installation is as simple as installing the plugin.
$ cd myrailsapp
$ ./script/plugin install git@github.com:xpepermint/webymize.git
How it's used
Now that we have successfully installed the plugin, we can simply execute Webymize's rake tasks like this:
$ rake webymize:javascriptsNote you can use SASS insted of pure CSS.
$ rake webymize:stylesheets
When do we use these rake tasks? It's up to you I guess. I use them as part of my Capistrano deployment process. After the page is deployed to the server the process automatically executes the necessary rake commands. You can find a Capistrano example at my GitHub.
Please try the plugin and give me some feedback.




