Tag comment

1 votes

9 comments

6166 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

20 votes

21 comments

11871 views

Annotate your models

Are you tired of going to schema.rb to find your table structures information? It would be better to list all the attributes of the model in the model itself.

flyerhzm
Fork me on GitHub