Fork me on GitHub

rails

    Clever enums in rails

    18 Apr 2013

    (kuba@codequest.com)

    After many years of rails developing I have finally found satisfying solution to implement enums in rails. Read More

    Tags 


    Restrict auto-generated routes.

    19 Aug 2011

    Andy Wang (wangyaodi@gmail.com)

    By default, Rails generates seven RESTful routes(new,edit,create,destroy,index,show, update) for a resource, sometime the resource only needs one or two routes, so just user :only or :except while defining routes to speedup the routing. Read More

    Tags