examples/skeleton/dist/conf/router.rb in merb-0.2.0 vs examples/skeleton/dist/conf/router.rb in merb-0.3.0
- old
+ new
@@ -9,11 +9,14 @@
# The default route is installed
puts "Compiling routes.."
Merb::RouteMatcher.prepare do |r|
+ # restfull routes
+ # r.resources :posts
+
# default route, usually you don't want to change this
- r.add '/:controller/:action/:id'
+ r.default_routes
# change this for your home page to be avaiable at /
- r.add '/', :controller => 'default', :action =>'index'
+ #r.add '/', :controller => 'whatever', :action =>'index'
end
\ No newline at end of file