good cheat sheat or ref card for Rails ActiveRecord
I'm just starting out with Rails and ActiveRecord. I feel that anything I want to make an association between two models (belongs_to
, has_one
, has_many
) I have to read the documentation over and over to really unders开发者_C百科tand it.
Does anyone know of a good cheatsheet or refcard that makes the distinctions visible ?
Amy Hoy has pretty nice ActiveRecord Relationships cheat sheet for basics of those.
I suggest you this Guide (Chapter 2)
I really like the cheat sheets on err-the-blog
So you could print out the has_many, belongs_to, and has_one sheet and refer to them. (or bookmark them)
精彩评论