Man, that's way better than removing 135 bytes! I *love* the implementation!
Alright! What about releasing 2.0? I've closed a lot of tickets on the tracker, and I don't think we need more for a 2.0. There is no point of waiting anymore, IMO! On Tue, Jun 24, 2008 at 12:14 AM, _why <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 12:16:35AM +0200, Magnus Holm wrote: >> The route maker's job is basically two things: >> - Make sure that all controllers includes the right mixins >> - If any controllers doesn't respond to "urls" (aka. haven't been inherited >> from R) define "urls" as ClassName.downcase >> >> The first point can be accomplished within R, but not the latter. But it >> should be noted that the latter also can cause some troubles. > > Or, maybe, instead of getting rid of #2 we could make it go a bit > beyond just downcasing to help steer us away from regexps. > > module Blog::Controllers > class Index # automatically '/' > def get; end > end > > class ViewN # automatically '/view/(\d+)' > def get id; end > end > > class ViewX # automatically '/view/(\w+)' > def get name; end > end > > class ViewYMD # automatically '/view/(\d+)/(\d+)/(\d+)' > def get time; end > end > end > > _why > _______________________________________________ > Camping-list mailing list > Campingemail@example.com > http://rubyforge.org/mailman/listinfo/camping-list > -- Magnus Holm _______________________________________________ Camping-list mailing list Campingfirstname.lastname@example.org http://rubyforge.org/mailman/listinfo/camping-list