简体   繁体   English

无法在Rubymine中运行Rails控制台

[英]Can't run rails console within Rubymine

I am attempting to learn how to use the rails console to help troubleshoot my rails app. 我正在尝试学习如何使用Rails控制台来帮助我的Rails应用程序进行故障排除。 However, the "Run IRB Console" and "Run Rails Console" are both grayed out within Rubymine, making it so I can't click them. 但是,“运行IRB控制台”和“运行Rails控制台”在Rubymine中均显示为灰色,因此无法单击它们。 Does anyone know why this is the case? 有谁知道为什么会这样吗?

如果您在Ubuntu中,并且在Windows中,请尝试使用RVM安装RubyRails ,下载Ruby和必要的Devkit ,然后从命令提示符下安装Rails,然后尝试Rails console选项(如果它在Terminal / cmd中有效),应该也可以在RubyMine中工作。

Make sure Rubymine is aware of your ruby and your gemset. 确保Rubymine知道您的宝石和宝石。 You can specify these things in the settings page "Ruby SDK and Gems" in your RubyMine project settings. 您可以在RubyMine项目设置的“ Ruby SDK and Gems”设置页面中指定这些内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM