Generators


Generating models, controllers, scaffolds and more is done by opening the Generators view located at the bottom right pane of the Rails perspective. The wizards that accomplished these functions in previous versions of RadRails have been removed. From now on the Generators view will be the spot to take care of these tasks.


Figure 1.1

Select the type of generator from the drop down box. Enter generator parameters in the text field. If you are ready to execute select the Go button or hit ENTER. A Terminal view will appear in the editor area with output from the generator command. After the generator has run the Rails Navigator will be refreshed and any changes will appear and/or disappear depending on the command type.

The Generators view offers the ability to both call the generate and destroy script. The radio button group beneath the type combo allows you to choose. Select Create if you want to call ruby script/generate ... and Destroy to call ruby script/destroy .... Option flags to generator commands can be set in the params field OR set by selecting checkbox flags beneath the param field.


Figure 1.1