Ruby In Steel :: Help Index :: SapphireSteel Software Front Page Return to the Index
Generate
See Also

Glossary Item Box

generate

Use the Generate dialog to run Rails scripts without having to go into a command prompt. Currently the available scripts are:

These are equivalent to running the following scripts at the command prompt:

ruby ./script/generate controller
ruby ./script/generate model
ruby ./script/generate scaffold
ruby ./script/generate

So, for example, if you want to run this script…

ruby ./script/generate controller Blog

…select the Controller option and enter Blog in the Value field.

To run this script…

ruby ./script/generate scaffold Post Blog

…select the Scaffold option and enter Post Blog in the Value field.

See Also