# Problem with basic routing

**URL:** <https://www.ruby-forum.com/t/problem-with-basic-routing/186789>\
**Category:** Rails\
**Created:** [April 12, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/problem-with-basic-routing/186789 "2010-04-12T12:50:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benchips](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@Benchips](https://www.ruby-forum.com/u/Benchips)\
**Post date:** [April 12, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/problem-with-basic-routing/186789/1 "2010-04-12T12:50:50Z")

</div>

Hi everybody!

I am new in the RoR world and I’m currently following the step by step  
tutorial for creating the basic “hello, Rails” stuff. Everything goes  
well till I try to display the page through the server.  
Apparently, I have to go to "[http://webserver:3000/home/index](http://webserver:3000/home/index) to see  
the page, but the URL doesn’t seem to exist.

Here is what you should know :  
I am using a production server on a remote machine, and I set up the  
httpd.conf file to go straight to the “Welcome aboard” page when I use  
the URL “[http://webserver:3000/](http://webserver:3000/)”. This page works fine, but the  
controller doesn’t seem to understand what I mean by “home/index”.  
Where does that come from? Do I miss something in a config file or  
what?

Thank you.

---

<div class="post-metadata">

**Author:** ![Benchips](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@Benchips](https://www.ruby-forum.com/u/Benchips)\
**Post date:** [April 12, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/problem-with-basic-routing/186789/2 "2010-04-12T13:18:21Z")

</div>

how did you run it ?

2010/4/12 Benchips [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Benchips](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@Benchips](https://www.ruby-forum.com/u/Benchips)\
**Post date:** [April 12, 2010, 1:38pm UTC](https://www.ruby-forum.com/t/problem-with-basic-routing/186789/3 "2010-04-12T13:38:50Z")

</div>

I guess  
you not used this commend :  
rake db:migrate RAILS\_ENV=“test”

2010/4/12 Benchips [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Benchips](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@Benchips](https://www.ruby-forum.com/u/Benchips)\
**Post date:** [April 13, 2010, 8:05am UTC](https://www.ruby-forum.com/t/problem-with-basic-routing/186789/4 "2010-04-13T08:05:53Z")

</div>

maybe the config is errored

this article maybe help you

[http://www.webmasterwords.com/ruby-rails-mongrel-apache-easy](http://www.webmasterwords.com/ruby-rails-mongrel-apache-easy)

2010/4/12 Benchips [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Benchips](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b487fb/32.png) [@Benchips](https://www.ruby-forum.com/u/Benchips)\
**Post date:** [April 12, 2010, 1:52pm UTC](https://www.ruby-forum.com/t/problem-with-basic-routing/186789/5 "2010-04-12T13:52:53Z")

</div>

The app folder is located on the server machine, in /usr/local (this  
is a Fedora installation). I have a root access to the server, but it  
has been running for 2 or 3 weeks and I don’t know exactly how (a  
system team handles it). After modifying the httpd.conf, I reloaded  
the server and it seems to work fine since I am well redirected to the  
“Welcome aboard” page.

Something I should have pointed out : the tutorial uses a default  
web server provided with Rails I believe (Mongrel). But I am using an  
Apache server on the remote machine. Maybe it doesn’t know how to  
redirect to “http:/webserver/home/index” (you should know that the  
directory “home/index” does not exist, the page I’m trying to reach is  
“app/views/home/index.html.erb”, but the tutorial proceeds that way).  
And so you know, I can’t even access to the page using the regular URL  
(the app/views one).
