G
gander
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"
Failure reasons:
1. <ActionController::Routing::Route ":controller/service.wsdl" when
{:action=>"wsdl"}> failed because no controller found at subpath typo
2. <ActionController::Routing::Route ":controller/:action/:id" ||
{: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.
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:
<VirtualHost *>
ServerName typo
DocumentRoot /www/webroot/typo/public
<Directory /www/webroot/typo/public/ >
Options ExecCGI FollowSymlinks
AllowOverride all
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
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
--------------------------------------
This leads me to believe it may also be a problem in config/routes.rb,
which reads, in part:
# default
map.connect '', :controller => 'articles'
Can anyone shed some light and point me in the right direction? I've
really tried to RTFM. Honest.
Thanks,
G
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"
Failure reasons:
1. <ActionController::Routing::Route ":controller/service.wsdl" when
{:action=>"wsdl"}> failed because no controller found at subpath typo
2. <ActionController::Routing::Route ":controller/:action/:id" ||
{: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.
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:
<VirtualHost *>
ServerName typo
DocumentRoot /www/webroot/typo/public
<Directory /www/webroot/typo/public/ >
Options ExecCGI FollowSymlinks
AllowOverride all
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
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
--------------------------------------
This leads me to believe it may also be a problem in config/routes.rb,
which reads, in part:
# default
map.connect '', :controller => 'articles'
Can anyone shed some light and point me in the right direction? I've
really tried to RTFM. Honest.
Thanks,
G