correct route for drupal nodes

master
Coleman 2008-07-03 11:14:41 -05:00
parent 949aae1c02
commit 56faf0d1c0
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
Merb.logger.info("Compiling routes...") Merb.logger.info("Compiling routes...")
Merb::Router.prepare do |r| 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', :controller => 'node',
:action => 'show' :action => 'show'
) )