Missing controller default code

Hello,
I generated a controller, using the command:

ruby script/generate controller my_kontroller my_model

The generated controller file, however, contains an empty class
definition. The default controller code is missing.

Any idea what went wrong?

Thanks,
gk

You only get controller code with script/generate scaffold model_name.

www.jefdean.com
[email protected]
917 414 7801

To Jeff and Mike:

Oops!

Thanks for waking me up!

gk

Mike W. wrote:

you only get the default methods in your controller when you use
scaffolding

you only get the default methods in your controller when you use
scaffolding

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs