So, maybe I''m asking a stupid question, but if someone could point me
in
the right direction, I''d be eternally grateful.
First, here''s what I have installed:
$ ruby -v
ruby 1.8.2 (2004-08-24) [i386-linux]
$ gem list
*** LOCAL GEMS ***
actionmailer (0.7.1)
Service layer for easy email delivery and testing.
actionpack (1.5.1)
Web-flow and rendering framework putting the VC in MVC.
actionwebservice (0.6.0)
Web service support for Action Pack.
activerecord (1.8.0)
Implements the ActiveRecord pattern for ORM.
activesupport (1.0.1)
Support and utility classes used by the Rails framework.
rails (0.10.1, 0.9.5)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.4.15)
Ruby based make-like utility.
sources (0.0.1)
This package provides download sources for remote gem installation
Now, when I try to create a brand new rails project (I''m trying to go
through the O''Reilly article, using the cookbook example):
$ rails Cookbook
$ cd Cookbook
$ vi config/database.yml
...modify to look like...
development:
adapter: postgresql
database: cookbook
host: localhost
username: rails
password:
$ script/generate scaffold Recipe
$ script/server
When I visit the url http://localhost:3000/recipes, I get the list of
recipes (I can manually add them to PostgreSQL and they show up). But
when I click on New recipe (or edit, or show, etc.), I get (url =
http://localhost:3000/recipes/new):
Routing Error
No route for path: "new"
Failure reasons:
<ActionController::Routing::Route ":controller/service.wsdl" when
{:action=>"wsdl"}> failed because no controller found at subpath
new
<ActionController::Routing::Route ":controller/:action/:id" ||
{:id=>nil, :action=>"index"}> failed because no controller
found at
subpath new
I don''t get it. This worked on Saturday. I''ve even tried
uninstalling
and reinstalling rails (and all the action and active modules). Is
there some kind of bug in the actionpack?