Aptana Studioヘルプ > はじめに > Developing Rails Projects with RadRails > Using RadRails Views

Using the Generators View

This page explains how to use the Generators View in RadRails.

Introduction

Use the Generators View to generate models, controllers, scaffolds, and other helpful tools. The Generators View (shown below) is located in the lower portion of your workbench by default. The generators view replaces the need to use the scripts/generate generator_name command-line tool.

Image:generatorsView.png

Instructions

To create or destroy a new generator:

  1. Click the Generators View tab to activate the Generators View.
  2. From the drop-down list, select your generator type. You currently can select from the following generators:
    • controller
    • integration_test
    • mailer
    • migration
    • model
    • plugin
    • scaffold
    • session_migration
    • web_service
  3. In the text box to the right of the drop-down list, type any parameters for your generator.
  4. Below the generator type drop-down list, choose either the Create or Destroy option to indicate whether you want to create or destroy this generator.
  5. In the Options box, check any options that are appropriate for your generator:
    • Pretend
    • Force
    • Skip
    • Quiet
    • Backtrace
    • Use SVN
  6. Click the Go button to create or destroy your generator.

Your Console View will display any output from your generator (example shown below).

Image:consoleGeneratorOutput.png

Related Topics