Coding should be done in a neat and clean way. Also, the code should be reusable
understandable and simple. Rails have a great feature to organize code in a very productive way in augmenting of this The atom editor is doing really a great job in Beautifying code.
Also in rails, Their is a gem named as Rubocop
To install this add
gem 'rubocop', '~> 0.49.0', require: false
then go to ur project directory and run
And see the maggic!