------_extPart_001_01C4DE00.3480CF0F
Content-Type: text/plain;
	charsets-ascii"
Content-Transfer-Encoding: quoted-printable

> >>>I'm trying to the 10min Setup video tutorial, but the video's 
> >>>slightly outdated, and my environment's a bit different.
> >>>
> >>>I've got Ruby 1.8, WinXP, Apache2, and MySQL working. I installed 
> >>>Rails via RubyGems, and I want to use it without virtual hosts, but

> >>>simply as a subfolder in my regular www directory.
> >>>
> >>>The provided Apache conf file assumes I'm using VirtualHost, so I 
> >>>modified it to:
> >>>
> >>><Directory /blog/public>
> >>>   Options ExecCGI FollowSymLinks
> >>>   AllowOverride all
> >>>   Allow from all
> >>>   Order allow,deny
> >>></Directory>
> >>>
> >>>Because I used gems, the default files are not actually in the www 
> >>>directory like in the video. I've manually copied the folder across

> >>>for
> now.
> >>>
> >>>Inside E:\www\blog, I ran "ruby script/new_controller Weblog", and 
> >>>it created the weblog_controller.rb file in 
> >>>E:\www\app\controllers\, but when I go to 
> >>>http://localhost/blog/weblog, I simply get a 404 error, which I 
> >>>half expected, 'cos there's no weblog folder in the blog
> folder.
> >>>In the video it seems to execute the controller scripts, but I 
> >>>can't
> get
> >>>that to work.
> >>>
> >>>So, say I was to start a project from scratch in my environment, 
> >>>how would I do it, to get Rails to print my hello world?
> >>>
> >>>Robo

It seems to me that you have mapped the directory E:/www/blog/public to
http://localhost/blog within apache. If so you should go to
http://localhost/blog and get a "Congratulations, you're on Rails!"
page. Now to try the weblog controller, go to
http://localhost/blog/weblog/ The important thing is the last slash. If
it's not there it gives me a 404 as well. I imagine it might work
without the slash if you changed Apache's httpd.conf to recognize
index.rhtml (along with the default of index.html) - I don't know, I
haven't tried it out yet on my rails app...

Chris



------_extPart_001_01C4DE00.3480CF0F--