[Rails] Broken record...

Bob Sidebotham bob.sidebotham at gmail.com
Sun Dec 5 02:09:32 GMT 2004


Geez, I'm beginning to sound like a broken record (if anyone else out
there is old enough to remember what broken records were like :-):

Going further in the todo tutorial, I discover that, with scaffolding
turned ON, and an empty list action, if I use the URL
http://localhost:3000/todo, then I just get a blank page, but if I use
the URL http://localhost:3000/todo/list, then I get a missing template
error.

Is this the expected behaviour? Shouldn't I get the missing template
error in both cases?

I guess I don't understand how the "todo" url is handled. Especially
under webrick, where there doesn't seem to be any remapping happening
(actually, I don't get that at all: how does webrick work without
remapping, but apache requires remapping of urls? I'm feeling really
stupid today...). Anyway, I was *assuming* that somehow, "todo" was
remapped internally to "todo/list", since when I do this example with
just scaffolding, but without the empty list method, the simpler url
with just "todo" does, in fact, list the todo items.

Scratching head, and not wanting to dive too deeply into the code just now,
Bob


More information about the Rails mailing list