Tag convention

2 votes

6273 views

to_s/to_s(:short)

override the to_s to make the method sensible instead of "display_name", "format_name"..

Comments

by yincan
yincan

10 votes

8388 views

Use css sprite automatically

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.

Comments

flyerhzm

1 votes

11945 views

comment your magic codes

Ruby/Rails provides a lot of magic codes, especially for metaprogramming, they are powerful, less codes to implement more functions, but they are not intuition, you should write good comment for your magic codes.

Comments

flyerhzm