examples/sample_app/dist/conf/router.rb in merb-0.0.4 vs examples/sample_app/dist/conf/router.rb in merb-0.0.5
- old
+ new
@@ -7,14 +7,13 @@
# as the content. So the :placeholders sections of your routes become
# a hash of arguments to your controller methods.
# The default route is installed
-puts "Compiling routes: \n"
+puts "Compiling routes.."
Merb::RouteMatcher.prepare do |r|
r.add '/foo/:bar/baz/:id', :controller => 'Test', :action => 'foo'
+ r.add '/bar/:bar_id/baz/:id', :controller => 'Test', :action => 'foo'
r.add '/:controller/:action/:id'
r.add '/bar/:*rest', :controller => 'Test', :action => 'glob'
+ r.add '', :controller => 'posts', :action =>'index'
end
-
-m = Merb::RouteMatcher.new
-puts m.compiled_statement
\ No newline at end of file