Actions and views need to be matched. if you have a "list" method, you
neeed a list.rhtml, and vice versa.
I''m not sure about the root /todo mapping.
Regards,
Nick
On Sat, 4 Dec 2004 18:09:32 -0800, Bob Sidebotham
<bob.sidebotham-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>