By default RubyMine has this option checked. As a result instead of moving to the next line when the caret reaches the end of the code, it carries on.

I’m sure there must be a reason for this behaviour but I find it very irritating.
To disable it go to File > Settings > Editor > Virtual Space and uncheck the “Allow placement of caret after end of line”.
