From: Robo Date: 2004-12-09T21:22:34+09:00 Subject: Re: Getting Rails to work on WinXP I've already got mod_rewrite enabled prior to installing Rails. Using gems instead of tgz, and not using VirtualHosts makes the situation a bit different to the tutorials, so still unable to get it working. Robo Tobias Luetke wrote: > Using apache you need mod_rewrite for pretty urls. If you go to > http://blog.leetsoft.com/rails/ you can find videos which can help you > to set everything up on windows. > > > > On Thu, 9 Dec 2004 06:54:24 +0900, Nicholas Van Weerdenburg > wrote: > >>On Wed, 8 Dec 2004 23:57:34 +0900, Robo wrote: >> >> >> >>>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: >>> >>> >>> Options ExecCGI FollowSymLinks >>> AllowOverride all >>> Allow from all >>> Order allow,deny >>> >>> >>>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 >>> >>> >> >>Does rails still require mod_rewrite for pretty urls in Apache? >> >>I'm still using webbrick on Windows- >>"ruby public/dispatch.servlet" from the root directory. >> >>Regards, >>Nick >> >> > > >