some codes with Active Record Associations
Merge pull request #4 from hxx/Active-Record-Associations

some codes with Active Record Associations