This project is archived and is in readonly mode.
Rails core follows the following code conventions and advises you to follow these for code uniformity:
- Two spaces, no tabs.
- No trailing whitespace. Blank lines should not have any space
- Indent after private/protected.
my_method( my_arg )or
class << selfblock over
self.methodfor class methods.
a = band not
- Don't use
orfor Boolean checks, instead always use
Follow the conventions you see used in the source already. These are guidelines: be reasonable; use your best judgement. Thanks.