diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-09 20:39:42 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-09 20:39:42 -0600 |
commit | b2ef6d13f0a0b3d07b8a2f9a1ec64988ba7e4392 (patch) | |
tree | c260b50a022b148a4364ad51de8e1fecc94de196 /railties/lib | |
parent | 0fec53f243079a60df817cab55100a136fafc1c9 (diff) | |
download | rails-b2ef6d13f0a0b3d07b8a2f9a1ec64988ba7e4392.tar.gz rails-b2ef6d13f0a0b3d07b8a2f9a1ec64988ba7e4392.tar.bz2 rails-b2ef6d13f0a0b3d07b8a2f9a1ec64988ba7e4392.zip |
Fixed old routing mapper example in generated routes.rb
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/routes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 57abc151d2..2efdf29127 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -269,7 +269,7 @@ module Rails # # === Example # - # route "map.root :controller => :welcome" + # route "root :to => 'welcome'" # def route(routing_code) log :route, routing_code diff --git a/railties/lib/rails/generators/rails/app/templates/config/routes.rb b/railties/lib/rails/generators/rails/app/templates/config/routes.rb index 5d110f6a1c..e0f9ca8a12 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/routes.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/routes.rb @@ -46,7 +46,7 @@ ActionController::Routing::Routes.draw do |map| # resources :products # end - # You can have the root of your site routed with map.root + # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => "welcome" |