diff options
author | Steven Hancock <stevenh512@gmail.com> | 2010-07-11 23:57:26 -0700 |
---|---|---|
committer | Steven Hancock <stevenh512@gmail.com> | 2010-07-11 23:57:26 -0700 |
commit | 1a35b6215fe4fb1630e2a635789038c5e6e56c63 (patch) | |
tree | 6b3c9a8cc1f564c12f7e35e1eaec0385a7d92ade /railties/guides | |
parent | c81e476d6d4cb88e7e29d6e18bb3e5acce92fb8f (diff) | |
download | rails-1a35b6215fe4fb1630e2a635789038c5e6e56c63.tar.gz rails-1a35b6215fe4fb1630e2a635789038c5e6e56c63.tar.bz2 rails-1a35b6215fe4fb1630e2a635789038c5e6e56c63.zip |
Removed deprecated |map| block argument from routing docs since it is 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.
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 | ||||
-rw-r--r-- | railties/guides/source/i18n.textile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index f547f29087..b4d1ae74c7 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -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" diff --git a/railties/guides/source/i18n.textile b/railties/guides/source/i18n.textile index b09bb470ee..63d22db485 100644 --- a/railties/guides/source/i18n.textile +++ b/railties/guides/source/i18n.textile @@ -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 |