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)
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 .
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.
You can configure 'bash' as an external tool in Settings | External Tools - then you'll be able to run it in a RubyMine toolwindow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With