Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Console in RubyMine

I know that Rails Console and IRB can be run from Tools. But how can i run simple console in RubyMine? (command line for rails s; rails g ... - it is more comfortable for me)

like image 794
makrusak Avatar asked Jun 16 '11 11:06

makrusak


People also ask

How do I open console in Rails?

Go to your browser and open http://localhost:3000, you will see a basic Rails app running. You can also use the alias "s" to start the server: bin/rails s . The server can be run on a different port using the -p option. The default development environment can be changed using -e .

How do I use console in Ruby?

We use the puts, print and "p" methods in Ruby to display text (or other data types). With stdin, we handle input from the console. Operators like << are helpful. And often a loop is used to create an interactive console program with a prompt.


1 Answers

You can configure 'bash' as an external tool in Settings | External Tools - then you'll be able to run it in a RubyMine toolwindow.

like image 135
yole Avatar answered Oct 01 '22 16:10

yole