


Select the correct version of ruby you want to use then press green arrow in the middle of the panels to make it default for current project,Īfter applying changes you might need to restart RubyMine to pick up the changes. This helps in running server as well as running RSPEC tests from within Rubymine, when running spec tests or a server it picks up correct version of gems. Setting up default Ruby version for a current Project Once gem is installed you should be good to run the project in Rubymine. It might prompt you about missing “ruby-debug-ide” gem and will give you an option to install that, say yes Rubymine will install missing gem for you,

Select PostgreSQL as Data Sourceįrom Run menu, you can run the newly created project in regular or debug mode, when running it debug mode, Then go to Database tool window, and press”New” button to add database configuration. Go to View menu -> Toolbar windows, select Database. You can setup Database tool to point to your PG database which makes it easier to view table records in RubyMine itself. Once project is created, you will be prompted to add git root in order to hook up with git for VCS operations.Ĭlick on configure link in the pop up above, once presented with Version Control settings everything should already be populated for, press “Ok” there This will prompt you about the directory selected in Location field not being empty, go-ahead and press “Yes”

Select Ruby SDK version to point to correct Ruby version, that should auto select correct Rails version for you. With that ruby_iron.cmd file in place you can just add IronRuby as an SDK in RubyMine.Select to Add “Rails application” on the left, then in Location point to the location where you have source code checked out for example “/home/hkataria/dev/manageiq” So instead of symlinking the ir.exe to a name that starts with ruby I created a batch file called ruby_iron.cmd with the following content. The solution to that is to create a batch file that will translate the –version modifier to –v. IronRuby on the other hand listens to –v to get its version number. Just symlinking didn’t really work because the ruby.exe listens to –version for getting its version number. I’d probably buy that one as well, but for now I’ll settle for Resharper with Visual studio.īy default Rubymine won’t accept IronRuby as a ruby SDK, but I asked for help in the twitterverse and got it ( ). I’ve used rubymine in the past and was very impressed with the IDE, so much that I’m silently hoping the guys from Jetbrains would do a C# IDE too.
