Skip to content

Commit

Permalink
Removed deprecated |map| block argument from routing docs since it is…
Browse files Browse the repository at this point in the history
… no longer generated in edge Rails config/routes.rb

Didn't touch plugins guide since I'm not too clear on how routes work in plugins.
  • Loading branch information
stevenh512 committed Jul 12, 2010
1 parent c81e476 commit 1a35b62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/routing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module ActionDispatch
# Think of creating routes as drawing a map for your requests. The map tells
# them where to go based on some predefined pattern:
#
# AppName::Application.routes.draw do |map|
# AppName::Application.routes.draw do
# Pattern 1 tells some request to go to one place
# Pattern 2 tell them to go to another
# ...
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/atom_feed_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module AtomFeedHelper
# Full usage example:
#
# config/routes.rb:
# Basecamp::Application.routes.draw do |map|
# Basecamp::Application.routes.draw do
# resources :posts
# root :to => "posts#index"
# end
Expand Down
2 changes: 1 addition & 1 deletion railties/guides/source/getting_started.textile
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ We need to do this as Rails will deliver any static file in the +public+ directo
Now, you have to tell Rails where your actual home page is located. Open the file +config/routes.rb+ in your editor. This is your application's _routing file_ which holds entries in a special DSL (domain-specific language) that tells Rails how to connect incoming requests to controllers and actions. There are only comments in this file, so we need to add at the top the following:

<ruby>
Blog::Application.routes.draw do |map|
Blog::Application.routes.draw do

root :to => "home#index"

Expand Down
2 changes: 1 addition & 1 deletion railties/guides/source/i18n.textile
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ You most probably have something like this in one of your applications:

<ruby>
# config/routes.rb
Yourapp::Application.routes.draw do |map|
Yourapp::Application.routes.draw do
root :to => "home#index"
end

Expand Down

0 comments on commit 1a35b62

Please sign in to comment.