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

1.新建一个```home``` controller带着一个```index``` action。

```
rails g controller home index
```
2.编辑```app/views/home/index.html```，添加一句：

```

Hello, Rails!

```
3.删除默认首页，执行命令：

```
rm public/index.html
```

4.编辑```config/routes.rb```，添加一句：

```
root :to => "home#index"
```

使```home#index```成为首页