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?

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/

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?

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

Good luck,

-Conrad

Shandy Nantz 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, 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