提交 33d92bf6 编写于 作者: K Kohei Hasegawa

Change default root route helper

上级 d1005608
......@@ -2,6 +2,6 @@
resources :posts do
resources :comments
end
root to: "welcome#index"
root "welcome#index"
end
......@@ -215,7 +215,7 @@ def capify!
# Make an entry in Rails routing file config/routes.rb
#
# route "root :to => 'welcome#index'"
# route "root 'welcome#index'"
def route(routing_code)
log :route, routing_code
sentinel = /\.routes\.draw do\s*$/
......
......@@ -3,7 +3,7 @@
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root to: 'welcome#index'
# root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册