Open a script in the editor and press ⌃⇧R / Ctrl+Shift+F10.
There are multiple ways to run Ruby scripts in RubyMine: We’ve divided the commands into several groups to allow you to quickly find a corresponding RubyMine feature: In this blog post, we’ll discuss the RubyMine features that can be used instead of running specific terminal commands and the benefits that working with the IDE provides. We found that most participants ran Bundler commands and tests from the IDE terminal. We also noticed this ourselves when we did some RubyMine usability testing among developers at RailsConf 2019. These tasks include running scripts, tests, Rails generators, Git and Docker commands, and many other things.
In the Ruby/Rails community, using a terminal is the most popular way to perform various commands and tasks.