https://github.com/bbatsov/ruby-style-guide
the first link in google ;)