Ask coding questions

← Back to all posts
how to open a rails console? to use rails generate
dorianthefrench (0)

i tried with byebug then system('bash') to get a prompt but the filesystem is probably a different one than what's shown on the web interface

Answered by TheDrone7 (560) [earned 5 cycles]
View Answer
TheDrone7 (560)

If you're trying to use ruby on rails, create a ruby on rails repl instead of a regular ruby repl. Otherwise you can open the shell by pressing the F1 key while focused on the Editor and then typing in open shell.

dorianthefrench (0)

@TheDrone7 i created a rails project, also f1 opens some kind of menu for editing, i will just not use the generators it's fine, thanks for trying to help

dorianthefrench (0)

weird, it embeded my code and there is an error :) worked fine in the editor