use new routes

This commit is contained in:
Vijay Dev
2010-12-25 23:27:15 +05:30
parent 8618ef7537
commit c6b9e47d5c

View File

@@ -60,8 +60,8 @@ Let's assume your application has the following controller and model:
<ruby>
# routes.rb
map.root :controller => 'home'
map.resources :posts
root :to => 'home#index'
resources :posts
# home_controller.rb
class HomeController < ApplicationController