I'm having trouble starting script/console.
I've tried cd
'ing into the project root ("C:\MyProject") then typing "script/console" and I get this:
'script' is not recognized as an internal or external command, operable program or batch file.
And when I type "ruby script/console" I get this:
Ruby: No such file or directory -- script/console (LoadError)
Any ideas? Should I be running these commands from the root? Thanks.
The usage ruby script/console
is present in Rails 2.3.x versions and older. I believe you installed Rails 3.x which deprecated that command.
You need to use now rails console
or rails c
(short version) from the application directory.
Better pay a visit to the Rails guides for all the other changes.
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