无法在 ruby on rails 上访问本地主机 [英] Cant access localhost on ruby on rails
本文介绍了无法在 ruby on rails 上访问本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行服务器并转到 localhost:3000
时,我收到此错误:
When I run the server and go to localhost:3000
I get this error:
ActiveRecord::ConnectionNotEstablished 没有带有 id 的连接池主要发现.
ActiveRecord::ConnectionNotEstablished No connection pool with id primary found.
有问题的代码:
activerecord (5.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:874
:in `retrieve_connection'
推荐答案
我也遇到了同样的问题.我只是取消注释
i also faced the same issue. i just uncommented
gem 'sqlite3'
然后重新启动我的 rails 服务器
and then restart my rails server
这篇关于无法在 ruby on rails 上访问本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文