Be mindful of spacing.  the convention in ruby in 2 spaces per code block.  I can help you setup sublime text so that it does 2 spaces of indentation automatically.