1. Oct 11th, 2009

    Ruby on Rails Code Quality Checklist

    Ruby on Rails Code Quality Checklist :

    1. Each controller action only calls one model method other than an initial find or new.
      (Make custom .new or .update methods in the model with all necessary).
    2. Only one or two instance variables are shared between each controller and view.
    3. All model and variable names are both immediately obvious (to a new developer) and as short as possible without using abbreviations.
    4. All custom “finds” accessed from more than one place in the code use named_scope instead of a custom method.
    5. A .find or .find_by_ is never called in a view or view helper.

    There are 15 in all, with explanation for each one, so go read and apply.

    Your comment, here ⇓