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