I''m in the process of playing around with the newest Rails (all of my
current apps still tied to 0.9.4).
I''m trying to setup a copy of Hieraki to run on a server non-vhost
under Apache. It was working with webrick for just playing around.
I''m totallly new to the Routes stuff but referenced the wiki page:
http://wiki.rubyonrails.com/rails/show/Non+VHost+Installation
So far I have done the following:
1. Added the "RewriteBase /hieraki/" line to the .htaccess file.
2. Removed the leading "/" from the "RewriteRule ^(.*)$
dispatch.cgi?$1 [QSA,L]" line.
3. Changed my routes.rb file
map.connect ''/hieraki/:controller/service.wsdl'', :action
=> ''wsdl''
map.connect ''/hieraki/:controller/:action/:id''
I guess the problem I''m having is with the specific route:
map.connect base, :controller => ''shelf''
I have changed the "server_root" config variable in config.yml to
hieraki/
I get the "Congratulations" page when going to
http://myserver/hieraki/, but when I try
http://myserver/hieraki/shelf/ I get:
Routing Error
No route for path: "shelf"
Failure reasons:
<ActionController::Routing::Route "hedxdocs" when
{:controller=>"shelf"}> failed
because value for component "hedxdocs" doesn''t match shelf
Any ideas? I''m sure it is something simple but I haven''t
found an answer yet.
--austin