Fork me on GitHub

plugin

    Use css sprite automatically

    15 Aug 2010

    Richard Huang (flyerhzm@gmail.com)

    Using css sprite can reduce a large number of http requests, so it makes the web page loaded much faster. It it painful to composite a lot of images manually, do it automatically. Read More

    Tags 


    Fix N+1 Queries

    25 Jul 2010

    Wen-Tien Chang (ihower@gmail.com)

    N+1 Queries is a serious database performance problem. Be careful of that situation! If you're not sure, I recommend you install http://github.com/flyerhzm/bullet plugin, which helps you reduce the number of queries with alerts (and growl). Read More

    Tags 


    DRY Controller (and debate)

    24 Jul 2010

    Wen-Tien Chang (ihower@gmail.com)

    For CRUD resources, we always write the same 7 actions with duplicated codes. To avoid this, you can use inherited_resources plugin. But be careful, there is DRY controller debate!! (http://www.binarylogic.com/2009/10/06/discontinuing-resourcelogic/) 1. You lose intent and readability 2. Deviating from standards makes it harder to work with other programmers 3. Upgrading rails trouble Read More

    Tags