Default Page Only?

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

and I am following a Lynda.com tutorial found here:
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?

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?

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?

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

-Conrad

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 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.

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

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/

On Aug 29, 2:32 pm, Shandy N. [email protected]

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. [email protected]