Ruby on rails Rails-Deleted public/index.html-现在浏览器显示目录结构

Ruby on rails Rails-Deleted public/index.html-现在浏览器显示目录结构,ruby-on-rails,apache,Ruby On Rails,Apache,我最近在Windows7上安装了RubyonRails ruby --version ruby 1.9.3p327 (2012-11-10) [i386-mingw32] rails --version Rails 3.2.9 我正在使用apache,并使用以下内容编辑了我的httpd.conf文件: Listen 3000 DocumentRoot "C:/Users/username/Documents/GitHub/blog/public" <Directory "C:/User

我最近在Windows7上安装了RubyonRails

ruby --version
ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
rails --version
Rails 3.2.9
我正在使用apache,并使用以下内容编辑了我的httpd.conf文件:

Listen 3000
DocumentRoot "C:/Users/username/Documents/GitHub/blog/public"

<Directory "C:/Users/username/Documents/GitHub/blog/public">
    Options Indexes +FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
这创建了我所期望的所有文件。然后,我编辑了routes.rb以获得以下行:

root :to => 'home#index'
当我重新加载浏览器时,它显示的不是/app/views/home文件夹中的index.html文件,而是我的/public文件夹的目录结构


有人知道我错过了什么步骤吗?

也许你想删除
索引
或者像这样添加
-
索引

也许您想删除
索引
或添加一个
-
这样的
-索引

root :to => 'home#index'