From: Craig Beck Date: 2005-05-14T13:18:44+09:00 Subject: Re: RoR on WinXP/Apache On May 13, 2005, at 7:40 PM, gander wrote: > I'm trying to get typo up on my local box (WinXP). > > When I hit localhost, I get the "Congratulations, you've put Ruby on > Rails!" screen. > > When I hit localhost/typo, I get: > > ------------------------------- > Routing Error > > No route for path: "typo" That sounds correct, as there is no "typo" controller in typo... however with a regular typo install there shouldn't be any index.html page (the "Congrats..." page). When you "hit localhost" what exactly is the url you are using? http://localhost? if so, then you are seeing the correct directory (typo/public) being served to you... although I don't know why you'd have the "Congrats you're on Rails" page. > Failure reasons: > > 1. when > {:action=>"wsdl"}> failed because no controller found at subpath typo > 2. {:id=>nil, :action=>"index"}> failed because no controller found at > subpath typo > ------------------------------- > I'm a triple newbie: ruby, rails, and apache so I don't even know > where > to start. > > Here's my take: > 1. The request is getting passed from Apache to Rails because the > error > is showing "ActionController" stuff. Sounds like that's the case > 2. It may be some mis-config in Apache since it can't find the proper > subpath. Here's what I have related to typo in httpd.conf: Sound likely... > > ServerName typo > DocumentRoot /www/webroot/typo/public > > Options ExecCGI FollowSymlinks > AllowOverride all > Allow from all > Order allow,deny > > > > For context, I also have in httpd.conf: > > DocumentRoot "C:/www/webroot" > > On my hard drive, the path to typo is: > > C:\www\webroot\typo > > > If I serve it up through WEBrick, I get: > > -------------------------------------- > Routing Error > > Illegal controller path for route default: articles routes.rb should work just fine as is. I suspect that the directive you're using is a bit off. I'd get rid of the ServerName typo to start. Are you trying to serve it via Apache as a .cgi? Can you serve typo via Webrick on port 3000 (the default Webrick port)? i.e. start script/server and goto http://localhost:3000 Is your Rails up to date? how about your gems? I've found that I've seen errors that didn't make sense because all the bits weren't up to date. -- Craig Beck http://luckybonza.com AIM: Kreiggers