Running ruby

Hey! Im new to programing and using app acadamy open. Im trying to get a program to code by myself, but when ever I run it says it cant work, I;ve tried many packages but it wont work, How can I fix this?