Tag convention

3 votes

8 comments

3133 views

to_s/to_s(:short)

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

by yincan
yincan

8 votes

2 comments

5053 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.

flyerhzm

1 votes

9 comments

6169 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.

flyerhzm
Fork me on GitHub