# Default Page Only?

**URL:** <https://www.ruby-forum.com/t/default-page-only/147260>\
**Category:** Rails\
**Created:** [August 29, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/default-page-only/147260 "2008-08-29T23:15:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 29, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/default-page-only/147260/1 "2008-08-29T23:15:17Z")

</div>

I have installed RoR on and XP machine running XAMPP. I followed the  
installation steps provided from here:  
[http://tinyurl.com/6py2v7](http://tinyurl.com/6py2v7)

and I am following a [Lynda.com](http://Lynda.com) tutorial found here:  
[http://movielibrary.lynda.com/html/modPage.asp?ID=324](http://movielibrary.lynda.com/html/modPage.asp?ID=324)

I’m still VERY early in the tut and it says to create a controller  
called “Say”. Did that and found it in the project folder i created  
(railz) railz/app/controllers/say\_controller.rb

I’m then told to edit the say\_controller and add:  
def hello  
end

so it now looks like:  
class SayController \< ApplicationController  
def hello  
end  
end  
I’m then told to go to localhost:3000/say/hello and in doing so i get  
a 404 error. have I missed something?

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 29, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/default-page-only/147260/2 "2008-08-29T23:32:36Z")

</div>

DizzyD wrote:

> I’m then told to go to localhost:3000/say/hello and in doing so i get  
> a 404 error. have I missed something?

Have you started the server?

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 30, 2008, 12:02am UTC](https://www.ruby-forum.com/t/default-page-only/147260/3 "2008-08-30T00:02:15Z")

</div>

Shandy N. wrote:

> Have you started the server?

I have apache running, so i can run webrick at the same time. However,  
with you saying so, I shutdown apache and ran webrick. In doing so my  
pages worked! However, with apache down, the rest of my entire server  
was down. Do you know of a solution for this? Perhaps making ruby run on  
apache?

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 30, 2008, 12:02am UTC](https://www.ruby-forum.com/t/default-page-only/147260/4 "2008-08-30T00:02:42Z")

</div>

Hi, did you create a file called ‘hello.html.erb’ in your  
\<RAILS\_APP\_PATH\>/app/views/say directory?  
Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 30, 2008, 12:09am UTC](https://www.ruby-forum.com/t/default-page-only/147260/5 "2008-08-30T00:09:42Z")

</div>

Conrad T. wrote:

> Hi, did you create a file called ‘hello.html.erb’ in your  
> \<RAILS\_APP\_PATH\>/app/views/say directory?  
> Good luck,
> 
> -Conrad  
> Thanks for the reply Conrad. I’m following a tutorial from [lynda.com](http://lynda.com) and  
> i haven’t gotten to that point yet. The idea was to create the  
> controller and test, and there was supposed to be a template error. And  
> I assume the creation of the file was to come next. But I didn’t get  
> that error, just a 404. So i’ve spent the last hour trying to figure out  
> why, when all it was is ruby was running under apache like I thought.  
> And I had assumed so because the default page showed and I assumed it  
> was ruby working. But now i know. So I have to figure how to get it  
> running under my current apache configuration.

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 30, 2008, 12:57am UTC](https://www.ruby-forum.com/t/default-page-only/147260/6 "2008-08-30T00:57:44Z")

</div>

Hi, I have been able to run both Apache and Mongrel without any issues  
because Apache is listening on port 80 and Mongrel on port 3000. In any  
case, if you don’t need Apache up while learning Rails, then by all  
means  
shut it down because Mongrel is sufficient for local development.  
Good luck,

-Conrad

On Fri, Aug 29, 2008 at 3:09 PM, Im David

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 30, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/default-page-only/147260/7 "2008-08-30T13:49:40Z")

</div>

there is no server to start. Apache is running. When i visit localhost:  
3000/ i get the index page. Wouldn’t that mean the server’s running?  
If not i’ve tried “ruby script/server” and i tries to run webrick but  
then i get an error, i think because of apache already running. You  
can see the url below:  
[cleanproweb.com:3000/](http://cleanproweb.com:3000/)

On Aug 29, 2:32 pm, Shandy N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![dizzyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Post date:** [August 30, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/default-page-only/147260/8 "2008-08-30T13:49:40Z")

</div>

ok, so i have apache running, but when i shut it down and run webrick,  
it works. But then my apache isn’t running so EVERYTHING else  
serverwise, is down. Any ideas?

On Aug 29, 2:32 pm, Shandy N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
