This a complete ruby on rail get started video. learn syntaxes and all you need to start writing codes in ruby. there are brief examples in the video and link to detailed examples in the video.
print, puts, variables, array, hashes, if statement, case, loop, functions and classes.
using sublime text