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

1.利用```scaffold```辅助新建```Post```：

```
rails g scaffold Post name:string title:string content:text
```
2.执行命令：

```
rake db:migrate
```
创建数据表。

3.在```app/views/home/index.html.erb```文件中添加：

```
<%= link_to "My Post", posts_path %>
```