Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update various documentation examples to use new routing DSL

  • Loading branch information...
commit 48b2451142355b22de5f8130b3debdd4e53e2ba2 1 parent 824fa10
Andrew White pixeltrix authored
2  actionpack/lib/action_controller/record_identifier.rb
View
@@ -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 %> <div id="post_45" class="post">
2  actionpack/lib/action_dispatch/routing/url_for.rb
View
@@ -63,7 +63,7 @@ module Routing
# named routes. For example, suppose that you have a 'users' resource in your
# <b>routes.rb</b>:
#
- # map.resources :users
+ # resources :users
#
# This generates, among other things, the method <tt>users_path</tt>. By default,
# this method is accessible from your controllers, views and mailers. If you need
4 actionpack/lib/action_view/helpers/atom_feed_helper.rb
View
@@ -9,8 +9,8 @@ module AtomFeedHelper
#
# 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:
2  activerecord/lib/active_record/base.rb
View
@@ -1572,7 +1572,7 @@ def initialize_copy(other)
# or nil if this record's unsaved.
#
# For example, suppose that you have a User model, and that you have a
- # <tt>map.resources :users</tt> route. Normally, +user_path+ will
+ # <tt>resources :users</tt> route. Normally, +user_path+ will
# construct a path with the user object's 'id' in it:
#
# user = User.find_by_name('Phusion')
Please sign in to comment.
Something went wrong with that request. Please try again.