R
Robo
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
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