I’ve been using resource_fu to make routes in Rails not stupid. I noticed the author tried to get a patch into core but it appears to have died out. I also noticed that someone else wrote a plugin called inferred_routes that does the same thing, so I’m going to link to all three in the hopes of adding some Google juice to them.
That being said, I think the renaming of resource route helpers and just miscellaneous weirdness due to the need to accommodate nested and polymorphic resources is a serious Rails wart.
I took a look through the code for both so I could make a meaningful comparison, and I would say that resource_fu is the way to go. It uses method aliasing instead of overriding which I think is a bit more future-safe (though the changes are invasive enough that a change to Rails core will break both), and the two do the same things to infer parents… I think. That being said, resource_fu also has a number of undocumented features, so its something to keep in mind should you be worried about code bloat.
Hsiu-Fan
Geek-tastic
/2008/03/25/rails-routing-red...