Ruby on rails rails路由错误未定义的局部变量或方法

Ruby on rails rails路由错误未定义的局部变量或方法,ruby-on-rails,ruby,Ruby On Rails,Ruby,我是RoR的初学者,这是我的示例 class PagesController < ApplicationController def welcome end end 当我打开火药 #config/routes.rb root to: "pages#welcome" root:to=>“页面#欢迎”错误引用 #config/routes.rb root to: "pages#welcome"

我是RoR的初学者,这是我的示例

class PagesController < ApplicationController
   def welcome
  end
end
当我打开火药

#config/routes.rb    
root to: "pages#welcome"

root:to=>“页面#欢迎”
错误引用
#config/routes.rb    
root to: "pages#welcome"