How do I enable Rails/IRB console?

Hello,

I have a problem with RubyMine's built-in Rails/IRB console: they are disabled (non-clickable) in the Tools menu, and I don't know how to reenable them. This happens for both existing and new projects. I'm using RubyMine 2.0 RC on Ubuntu 9.10. Any suggestions will be greatly appreciated.

Thanks,
Adam

7 comments
Comment actions Permalink

Rails console is disabled in non Rails applications. IRB console may be disabled if Ruby SDK isn't selected in File | Settings | Ruby SDK and Gems Manager or RubyMine wasn't able to find irb console executable in selected sdk.

Where irb and ruby executable are located on your machine? (RubyMine expects to find "irb" script in the same directory as "ruby" interpreter executable)

0
Comment actions Permalink

Hi Adam,

Most likely you haven't irb package installed on your system thus RubyMine cannot locate irb command.
Please try executing the following command

dpkg --list | grep irb
If answer is empty then run

sudo aptitude install irb
Hope this help

Regards,
Oleg

0
Comment actions Permalink

Thanks a lot guys, installing irb helped

0
Comment actions Permalink

I have a similar problem but only for Rails console. IRB console menuis enabled.
Any ideas on how to solve this?
Thanks,
Michael

0
Comment actions Permalink

Hello Michael,

Run Rails Console action is enabled when:

  • Ruby SDK is configured for project
  • IRB executable is installed for SDK
  • Rails are installed for given SDK
  • RubyMine treats project as Ruby on Rails project

Please ensure that all requirements are met.

Regards,
Oleg

0
Comment actions Permalink

In addition, I see the Run Configuration Error on the Run/Debug Configurations screen. This happens for my existing project that I created before installing Ruby Mine and with a new project that I create using RM.
Let me know if you want me to post this as a separate error.
Thanks

Hi Oleg,

Thanks for reply. I do have Ruby and Rails installed and working. I have opened the Rails project in RubyMine and can run IBR console bur Rails console is disabled.

Ruby SDK 1.9.2 is installed as well as IRB.

Here is information about my environment. I'm quite new to Rails and Ruby and any additional help will be greatly appreciated.

Thanks,

Michael

About your application's environment

Ruby version              1.9.2 (i386-mingw32)

RubyGems version          1.3.7

Rack version              1.2

Rails version             3.0.1

Active Record version     3.0.1

Action Pack version       3.0.1

Active Resource version   3.0.1

Action Mailer version     3.0.1

Active Support version    3.0.1

Application root          C:/rails/streams

Environment               development

Message was edited by: Michael Vax

0
Comment actions Permalink

Could you attach a screenshot of "RubyMine | File | Settings | Ruby SDK and Gem Manager" panel? Also please add diagnostic info from "RubyMine | Tools | Show Gem Environment" dialogs."

0

Please sign in to leave a comment.