400 Rails Plugins

1 Nov 2006

Tom Fakes has been keeping me updated on the countdown to the 400th plugin in the Rails plugin directory, and now it has happened. The Custom Benchmarks plugin is number 400! (Cue confetti, noisemakers, etc.) Perhaps I should have some sort of giveaway for the person who submits the 500th plugin. :)



Rails Plugin Tool v0.2.1

27 Oct 2006

I have just pushed out RaPT v0.2.1. New in this release is the ability to search the Rails plugin directory from the command line.

For example, rapt search authenticated would return you a list of plugins matching that search from the directory, with links back to the directory for more info and with URLs to the subversion repositories. The repository URLs can be used as the argument for rapt install [URL]. Now any plugin (that’s listed in the directory — 395 of them at the moment) is easily accessible without having to discover or even open a web browser.

Install via gem install rapt or head to the RaPT site to download a copy.



The power of GET

28 Sep 2006

Thanks to Per Wigren (aka Tuxie), I got a good pointer to why the ratings at the Rails plugin directory were wrong (everything was a 3): bots.

In my attempt to make the functionality accessible, I provided a fallback to the AJAX ratings. Unfortunately, I chose simple links, aka GETs, as the fallback. Apparently I needed a personal experience with the truism of never letting a GET request make a change to your database.

So, I changed the links to be AJAX only, changed the controller to return 403 unless the request is via XHR, and then recalculated the ratings to exclude all the bot-submitted ones. Now not every plugin is rated a 3, and there are about 20,000 fewer votes in the database. :)