D
D
Dmitry2018-10-22 11:30:36
Ruby on Rails
Dmitry, 2018-10-22 11:30:36

Why does Ruby throw an error when running a file?

Why does Ruby throw an error when running a file? Installed RailsInstaller. Everything was fine before. Plus, I give this file permission rb, and he sees it as a notepad
. What's the problem?5bcd8a9fcdc3e462315316.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2018-10-24
@Vidgar

First, there should be no spaces in the file name. Rather, you should have an error like there is no such hello file or directory. Since you are trying to run the hello file and pass the world.rb argument to it.
Secondly, you have some nonsense with the rubegms gem. Have you installed Ruby correctly?
Or are you trying to include rubygems in code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question