Dan Webb's Request Routing Plugin

Have you ever wanted to write Rails routes using a URL’s subdomain? What about routing based on whether a request was HTTP vs HTTPS? Well, now you can. Recently Dan Webb released his “Request Routing Plugin”:http://svn.vivabit.net/external/rubylibs/request_routing/README for public use. This plugin lets you create routing rules that use a whole slew of new properties: domain, subdomain, method, port, remote_ip, content_type, accepts, request_uri, and protocol.

You can obtain the plugin from Dan’s subversion repository:

ruby script/plugin install \

Rails Day 2006

Last June was the first Rails Day, where teams of two or three competed to build the best all around Rails app in a 24 hour period.

Well they’re doing it again this year: Rails Day 2006 will be held on June 17th, just a few days before the first official Rails Conference.

Last year’s contest had dozens of dozens of teams and almost as many prizes, including some pretty sweet ones for the teams that won top honors.

This year’s organizers are looking for your help on fine tuning the rules. So weigh in with your opinions if you have any.

Registration isn’t quite open yet. So rally the troops and stay tuned.

Getting Real after RailsConf in Chicago

If you’re in Chicago for RailsConf, you might want to extend your stay to include the following Monday. The Getting Real workshop by 37signals is going down on June 26th. Learn all about how you can put those Rails skills towards your own business and build web applications like Basecamp, Backpack, and Campfire.

The workshop was announced yesterday and half the seats are already gone. If you want to partake, you’ll probably have to sign up pretty soon.

Wellington Rails User's Group

Tomek Piatek and others have started Well Railed, the Rails User’s Group in Wellington, NZ. The first meeting will be on the 30th May at 6:30-ish at Hell Pizza in Bond Street. So come along for some pizza and beers to meet the local rails crowd.

You can follow group discussions on-line on Google Groups page.

Tom Copeland on the Rails podcast

The latest Rails podcast features Tom Copeland, one of the guys who generously runs RubyForge. Some might be surprised to know that Rich Kilmer and Tom Copeland have been running RubyForge out of Rich’s basement for the past few years.

Aside from keeping all our Ruby libraries available for download, Rich and Tom have been putting in a lot of work on their latest application, indi which is in a private beta until mid summer.

Download the podcast: mp3, mp4.

A typed transcript should be available soon as well. For those interested in typed transcripts, you can subscribe to a transcript RSS feed.

Interview with Mongrel developer Zed Shaw

Zed Shaw’s new (mostly) Ruby webserver Mongrel has been getting people’s attention lately. What started out as perhaps just an itch has turned into a full time project for Zed, backed by corporate funding.

Pat Eyler caught up with Zed over at O’Reillynet for an interview where Zed gives some details about the Mongrel project.

Many have already switched their apps over to use Mongrel. Keep an eye on it as an increasingly viable option for serving up your Rails applications.

Weekly interactive guides with Kevin Clark

Kevin Clark, the guy whose recently taken on the documentation cleanup project, is diversifying his documentation work. His latest idea: weekly interactive guides.

Write into Kevin with requests on a specific Rails related topic that you’d like to understand better. He chooses a topic from your requests each week and builds a guide around that topic.

Get your submissions in by Monday to kevin dot clark at gmail dot com. Include [idea] at the start of the Subject. He’ll have the guide ready by the following Monday.

Easily find inefficient queries with QueryTrace

Nathaniel Talbott of test/unit fame has just released a new plugin he calls QueryTrace. I’ll let him explain what it does:

It’s nice that ActiveRecord logs the queries that are performed when your actions are executed, since it makes it easy to see when you have serious inefficiencies in your application. The next question, though, is always, “OK, so where are those being run from?

A gentle reminder about pluralizations

Watching the RSS feed from the Ruby on Rails trac is a great way to keep up on what’s happening in Rails development. If you’re doing any development on the Ruby on Rails project it’s required reading. Even if you just are using Rails for a web app, it’s useful to keep up on what bugs people are reporting.

Lately I’ve noticed a slew of bugs being opened against the Inflector, the class in Rails that transforms words from one form to another: singular to plural, classname to tablename, etc. The bugs all complain that Inflector is getting a pluralization or singularization wrong. But this isn’t a bug in Inflector, it is just an inherent limitation of how it works. But fear not, there is a better solution than opening a bug against the Inflector.

I guess this has been a constant thing over the history of Rails, but since it’s still going on, it deserves a rehash.

Welcome Josh Susser to the Rails weblog

You may already know Josh Susser from his excellent blog has_many :through. After linking up 5 of his posts in a row we figured it would be easier to cut out the middle man so we’ve brought him on board to be one of the contributors to the Rails weblog.

Rails weblog readers this is Josh, Josh the readers of the Rails weblog…