mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
use new routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user