In the first page you add a
to tell the controller you have your own index view. I guess you don't need that. Rails tests always if it can render an index.rhtml of the user when you type /demo/index before rendering its own view templates.
(I think this answers my own question posted in http://www.oreillynet.com/cs/user/view/cs_msg/84357)
I have tested and it works with the def index.