
Use the Generate dialog to run Rails scripts without having to go into a command prompt. Currently the available scripts are:
- Controller
- Model
- Scaffold
- Other
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
Tools
Ruby and Rails Tools