zhao-zhu/blog_1 — comment on commit a51c9d4ec5ea8f42316f87773448189c61f84ca9
File:  line 0
By zhaoguobin:

1.新建一个tag model

```
rails generate model tag name:string post:references
```
2.生成tags表

```
rake db:migrate
```
3.针对tag修改post的model、controller和view