Skip to content

Instantly share code, notes, and snippets.

@RSchneider94
Created July 11, 2018 17:45
Show Gist options
  • Save RSchneider94/fb3549c8f687043c8a75c772d34cbdc9 to your computer and use it in GitHub Desktop.
Save RSchneider94/fb3549c8f687043c8a75c772d34cbdc9 to your computer and use it in GitHub Desktop.
My first Ruby on Rails Program
# A simple greeting method! :)
def greeting
puts "Please enter your name: ";
usrName = gets.chomp;
puts "Hello" + " " + usrName;
end
# Call the method
greeting;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment