【问题标题】:Started rails server but localhost:3000 shows error启动 Rails 服务器但 localhost:3000 显示错误
【发布时间】:2016-09-07 06:42:48
【问题描述】:

我目前正在关注http://guides.rubyonrails.org/getting_started.html 上的教程。当我尝试运行服务器并转到 localhost:3000 时,我在第 5 部分,但出现此错误 (link to screenshot of error)

【问题讨论】:

    标签: ruby-on-rails


    【解决方案1】:

    根据你上传的图片,你好像忘记在EventsController中添加show方法了。

    尝试在你的 events_controller.rb 文件中添加:

    def show
    end
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-04
      • 2019-02-26
      • 1970-01-01
      • 2012-11-03
      • 1970-01-01
      • 2017-08-17
      相关资源
      最近更新 更多