无法加载“ rails c”。 (错误:“切换为检查模式”)在RubyMine Jetbrains IDE内其他功能正常的命令行中 [英] Unable to load "rails c" (error: "Switch to inspect mode") from within the otherwise functional command line inside of the RubyMine Jetbrains IDE

查看:204
本文介绍了无法加载“ rails c”。 (错误:“切换为检查模式”)在RubyMine Jetbrains IDE内其他功能正常的命令行中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑:问题是,如何切换到检查模式?

The question is, how to I "switch to inspect mode"?

通过RubyMine Jetbrains IDE中的外部工具功能(文件,设置,外部工具),我已经在我的jetbrains ide中巧妙地添加了命令行。此cmd(我正在使用Vista)工具适用于所有命令,包括rails generate和rake命令,但是当我尝试 rails c时,效果如下所示:

Through the "External Tools" function within the RubyMine Jetbrains IDE (file, settings, external tools), I have cleverly added a command line to my jetbrains ide. This cmd (I'm using Vista) tool works for all commands, including rails generate and rake commands, but when I try "rails c", well, here's what it looks like:

C:\Users\davo\Desktop\RailsProjects\simple_cms>rake db:migrate
rake db:migrate
==  CreateAdminUsersPagesJoin: migrating ======================================
-- create_table(:admin_users_pages, {:id=>false})
   -> 0.5620s
-- add_index(:admin_users_pages, ["admin_user_id", "page_id"])
   -> 0.2740s
==  CreateAdminUsersPagesJoin: migrated (0.8360s) =============================


C:\Users\davo\Desktop\RailsProjects\simple_cms>rails c
rails c
Loading development environment (Rails 3.2.3)
Switch to inspect mode.

这一切都在jetbrains的自定义控制台中。如您所见,我能够在其中执行rake命令。

That's all inside of the jetbrains "custom console". As you can see I was able to do a rake command in there.

我在Google上搜索了切换至检查模式,却找不到任何有用的东西。

I've googled "switch to inspect mode" and wasn't able to find anything very helpful.

推荐答案

RubyMine具有内置方法:工具 | 运行Rails控制台...

RubyMine has a built-in way to do it: Tools | Run Rails Console...

这篇关于无法加载“ rails c”。 (错误:“切换为检查模式”)在RubyMine Jetbrains IDE内其他功能正常的命令行中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆