Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed old routing mapper example in generated routes.rb

  • Loading branch information...
commit b2ef6d13f0a0b3d07b8a2f9a1ec64988ba7e4392 1 parent 0fec53f
Joshua Peek josh authored
2  railties/lib/rails/generators/actions.rb
View
@@ -269,7 +269,7 @@ def freeze!(args={})
#
# === Example
#
- # route "map.root :controller => :welcome"
+ # route "root :to => 'welcome'"
#
def route(routing_code)
log :route, routing_code
2  railties/lib/rails/generators/rails/app/templates/config/routes.rb
View
@@ -46,7 +46,7 @@
# 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"
Please sign in to comment.
Something went wrong with that request. Please try again.