From 48b2451142355b22de5f8130b3debdd4e53e2ba2 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Sun, 4 Apr 2010 17:34:13 +0100 Subject: Update various documentation examples to use new routing DSL --- actionpack/lib/action_controller/record_identifier.rb | 2 +- actionpack/lib/action_dispatch/routing/url_for.rb | 2 +- actionpack/lib/action_view/helpers/atom_feed_helper.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb index 7fdaffe3eb..fe2f6cee70 100644 --- a/actionpack/lib/action_controller/record_identifier.rb +++ b/actionpack/lib/action_controller/record_identifier.rb @@ -6,7 +6,7 @@ module ActionController # the view actions to a higher logical level. Example: # # # routes - # map.resources :posts + # resources :posts # # # view # <% div_for(post) do %>
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index dd86aa3e87..fb236dce53 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -63,7 +63,7 @@ module ActionDispatch # named routes. For example, suppose that you have a 'users' resource in your # routes.rb: # - # map.resources :users + # resources :users # # This generates, among other things, the method users_path. By default, # this method is accessible from your controllers, views and mailers. If you need diff --git a/actionpack/lib/action_view/helpers/atom_feed_helper.rb b/actionpack/lib/action_view/helpers/atom_feed_helper.rb index 58c3a8752e..52806f206a 100644 --- a/actionpack/lib/action_view/helpers/atom_feed_helper.rb +++ b/actionpack/lib/action_view/helpers/atom_feed_helper.rb @@ -9,8 +9,8 @@ module ActionView # # config/routes.rb: # Basecamp::Application.routes.draw do |map| - # map.resources :posts - # map.root :controller => "posts" + # resources :posts + # root :to => "posts#index" # end # # app/controllers/posts_controller.rb: -- cgit v1.2.3