1

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

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.

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

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

Makoto
  • 104,088
  • 27
  • 192
  • 230
boulder_ruby
  • 38,457
  • 9
  • 79
  • 100

1 Answers1

1

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

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • Actually I was wrong about that. When I try to run console commands it gives me the same error: "Switch to inspect mode." I've tried it in all three environments. – boulder_ruby May 21 '12 at 22:46
  • 2
    It's not a error, it's just the expected output of the rails console. You can continue typing commands in the console after `>>` and they will run. – CrazyCoder May 22 '12 at 00:03
  • It's slow as hell. Now the windows command line is slow with ruby, but with RubyMine the irb in rails development mode is incredibly, almost prohibitively slow. Is this the case with your version? – boulder_ruby May 22 '12 at 00:11
  • I didn't notice such problems. – CrazyCoder May 22 '12 at 12:23
  • It's working now. thanks. not sure what was going on there for a second. – boulder_ruby May 22 '12 at 18:12