- set default / to /search

This commit is contained in:
Jordan Sissel 2009-10-23 08:12:30 +00:00
parent ddbf0ebe36
commit 807461e79e

View file

@ -30,6 +30,9 @@ Merb::Router.prepare do
# RESTful routes
# resources :posts
# default page is search
match('/').to(:controller => 'search', :action => 'index')
# This is the default route for /:controller/:action/:id
# This is fine for most cases. If you're heavily using resource-based
# routes, you may want to comment/remove this line to prevent
@ -38,4 +41,4 @@ Merb::Router.prepare do
# Change this for your home page to be available at /
# match('/').to(:controller => 'whatever', :action =>'index')
end
end