# Home path not working in routes.rb

**URL:** <https://www.ruby-forum.com/t/home-path-not-working-in-routes-rb/173271>\
**Category:** Rails\
**Created:** [August 6, 2009, 1:39am UTC](https://www.ruby-forum.com/t/home-path-not-working-in-routes-rb/173271 "2009-08-06T01:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 6, 2009, 1:39am UTC](https://www.ruby-forum.com/t/home-path-not-working-in-routes-rb/173271/1 "2009-08-06T01:39:18Z")

</div>

Hi,

I configured my home path in routes.rb yet when I load the root url  
the home path doesnt get loaded automatically. My routes.rb is as

ActionController::Routing::Routes.draw do |map|

map.home “”, :controller =\> “homz”, :action =\> “aboutviridian”  
map.featuresorganization “featuresorganization”, :controller =\>  
“feature”, :action =\> “organization”  
map.featuresmembers “featuresmembers”, :controller =\>  
“feature”, :action =\> “membership”  
map.featureswork “featureswork”, :controller =\> “feature”, :action  
=\> “work”  
map.featuressearchengine “featuressearchengine”, :controller =\>  
“feature”, :action =\> “searchengine”

map.resources :feature  
map.resources :homz

map.connect ‘:controller/:action’  
map.connect ‘:controller/:action/:id’  
map.connect ‘:controller/:action/:id.:format’  
end

Note… the moment I change  
map.home “”, :controller =\> “homz”, :action =\> “aboutviridian”  
to  
map.home “home”, :controller =\> “homz”, :action =\> “aboutviridian”  
and do localhost:3000/home… it works

Can someone please help?

---

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 6, 2009, 1:58am UTC](https://www.ruby-forum.com/t/home-path-not-working-in-routes-rb/173271/2 "2009-08-06T01:58:02Z")

</div>

got it working!  
Ignore… thanks a lot…  
had index.html in public folder and the home always loaded that by  
default
