Newb Question

When you use one of the generator scripts, to create a model, or a controller, say, shouldn't an rhtml file in the view folder be created as well? Thanks.

Use script/generate scafffold foo to create a model/controller, and views. The model and controller generators only generate the model or controller code.

You will get a view directory when you generate the controller, but there will not be anything in it because there are no methods in the controller. Methods are only created in the controller with the scaffold.

You can just add in the controller

def index end

and in the view directory add the file 'index.rhtml' with something like "Hello there" to see it work.