
Ruby Programming Language - Full Course
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Schleepy
So, I just had a bit of a panic after I pressed Alt+R in Atom because I was getting an error message saying -Unable to find command: ruby-, telling me my PATH wasn't configured correctly. If anyone else on Windows 10 is having this problem, I found a way to fix it pretty easy.
1. In Files Explorer, right-click -This PC- in the navigation tree panel on the left.
2. From this menu, select -Properties- at the bottom
3. Select -Advanced System Settings-
4. Click -Environment Variables...- in the advanced tab
5. Under -System Variables-, highlight -Path- and click the -edit- button below.
6. You'll want to create a new variable by selecting -New-
In the blank highlighted row, you have to enter the location you have Ruby installed. I used the default location that the installer had selected, and if you did too, you should be able to select -Browse...- and navigate to C:\Ruby31-x64 or whatever version of Ruby you have installed. Highlight this Ruby folder, click -OK-, and make sure to restart Atom so it'll recognize your changes. Then FINALLY, everything worked for me ;_;
I wrote this for my fellow smooth brains who aren't great with computers yet, so I'm sorry if any of this seemed obvious, but I hope it helps anyone having the same problem. Google saved my life, thankfully!
reply
So, I just had a bit of a panic after I pressed Alt+R in Atom because I was getting an error message saying -Unable to find command: ruby-, telling me my PATH wasn't configured correctly. If anyone else on Windows 10 is having this problem, I found a way to fix it pretty easy.
1. In Files Explorer, right-click -This PC- in the navigation tree panel on the left.
2. From this menu, select -Properties- at the bottom
3. Select -Advanced System Settings-
4. Click -Environment Variables...- in the advanced tab
5. Under -System Variables-, highlight -Path- and click the -edit- button below.
6. You'll want to create a new variable by selecting -New-
In the blank highlighted row, you have to enter the location you have Ruby installed. I used the default location that the installer had selected, and if you did too, you should be able to select -Browse...- and navigate to C:\Ruby31-x64 or whatever version of Ruby you have installed. Highlight this Ruby folder, click -OK-, and make sure to restart Atom so it'll recognize your changes. Then FINALLY, everything worked for me ;_;
I wrote this for my fellow smooth brains who aren't great with computers yet, so I'm sorry if any of this seemed obvious, but I hope it helps anyone having the same problem. Google saved my life, thankfully!
reply
Aryant
questionPaper = Array[-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is a rose ? -, -A-),-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is sky ? -,-C-),-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is a brinjal? -, -D-),-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is a pear? -,-B-)-
]
this is my code where question is a class
class Question-
attr_accessor :options,:statement, :answer-
def initialize(options,statement,answer)-
-options = options,-
-statement = statement,-
-answer = answer-
end-
end
but when i m printing questionPaper[0].options that prints entire object why so
reply
questionPaper = Array[-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is a rose ? -, -A-),-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is sky ? -,-C-),-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is a brinjal? -, -D-),-
Question.new( Array[-Red-,-green-,-Blue-,-Purple-],- What color is a pear? -,-B-)-
]
this is my code where question is a class
class Question-
attr_accessor :options,:statement, :answer-
def initialize(options,statement,answer)-
-options = options,-
-statement = statement,-
-answer = answer-
end-
end
but when i m printing questionPaper[0].options that prints entire object why so
reply
Rudy
I installed Ruby exactly as you said and also the IDE instructions plus the package installation instructions for atom-runner afterwards created the ruby file destination .rb then added in the text field print -something- and then pressed alt +r (for windows). what I got in return held me back from going forward with your video. This is the response I got after trying to run atom-runner. Unable to find command: ruby Are you sure PATH is configured correctly?
reply
I installed Ruby exactly as you said and also the IDE instructions plus the package installation instructions for atom-runner afterwards created the ruby file destination .rb then added in the text field print -something- and then pressed alt +r (for windows). what I got in return held me back from going forward with your video. This is the response I got after trying to run atom-runner. Unable to find command: ruby Are you sure PATH is configured correctly?
reply
Frank
-2:45:35 There is no such thing as a -hashtag symbol-. A -hashtag- is a combination of a pound sign or number sign (in some English speaking countries it is called a HASH symbol, not hashTAG symbol) and a word or phrase, and ONLY when used with an app/program/service that supports using that combination as a method of tagging an item for searching.
reply
-2:45:35 There is no such thing as a -hashtag symbol-. A -hashtag- is a combination of a pound sign or number sign (in some English speaking countries it is called a HASH symbol, not hashTAG symbol) and a word or phrase, and ONLY when used with an app/program/service that supports using that combination as a method of tagging an item for searching.
reply
Walky
At 59:50, my name.chomp() doesn't work. I get the following error:-
-userinput.rb:3:in -': undefined method -chomp' for nil:NilClass (NoMethodError)-
Any fixes?
Edit:-
If anyone is getting this error, add the '.chomp()' inside the puts statement. It'll be like this:-
puts(-Your name is - + name.to_s.chomp() + -, you are cool!-)
reply
At 59:50, my name.chomp() doesn't work. I get the following error:-
-userinput.rb:3:in -': undefined method -chomp' for nil:NilClass (NoMethodError)-
Any fixes?
Edit:-
If anyone is getting this error, add the '.chomp()' inside the puts statement. It'll be like this:-
puts(-Your name is - + name.to_s.chomp() + -, you are cool!-)
reply
KOTOSHI
can anyone please help me pls if anyone sees this pls. my packages arent popping up at all they are just saying Fetching featured packages failed.Hide output-
self signed certificate in certificate chain
and everytime i try and download from the site it told me to go on i would download it and it wont download somone pls help
reply
can anyone please help me pls if anyone sees this pls. my packages arent popping up at all they are just saying Fetching featured packages failed.Hide output-
self signed certificate in certificate chain
and everytime i try and download from the site it told me to go on i would download it and it wont download somone pls help
reply
Gabriel
I can't install sqlite3, it's installed in my system but when I try run rails server says -An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.-
In Gemfile:-
sqlite3 -
reply
I can't install sqlite3, it's installed in my system but when I try run rails server says -An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.-
In Gemfile:-
sqlite3 -
reply
IAmTurtle
I just picked a random programming language on vs code so here I am
Edit: On vs code open the terminal in the program as a workspace thingy and you can interact with it
reply
I just picked a random programming language on vs code so here I am
Edit: On vs code open the terminal in the program as a workspace thingy and you can interact with it
reply
Rafael
Does this old tutorial still makes sense in 2022? I ask this in the nicest possible way. Either way, thank you for sharing the video. I will watch it.
reply
Does this old tutorial still makes sense in 2022? I ask this in the nicest possible way. Either way, thank you for sharing the video. I will watch it.
reply
Danila
I like it when it's supposed that Linux user by definition is smart enough to install any software so you don't need to make instructions for Linux
reply
I like it when it's supposed that Linux user by definition is smart enough to install any software so you don't need to make instructions for Linux
reply
Add a review, comment
Other channel videos















