From 56faf0d1c0995b65217379013d049bd51c3d8184 Mon Sep 17 00:00:00 2001 From: Coleman Date: Thu, 3 Jul 2008 11:14:41 -0500 Subject: [PATCH] correct route for drupal nodes --- config/router.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/router.rb b/config/router.rb index 980d082..0e616ad 100644 --- a/config/router.rb +++ b/config/router.rb @@ -1,6 +1,10 @@ Merb.logger.info("Compiling routes...") Merb::Router.prepare do |r| - r.match('/node/(node/)?:id').to( + r.match('/node/node/:id').to( + :controller => 'node', + :action => 'show' + ) + r.match('/node/:id').to( :controller => 'node', :action => 'show' )