Creating a Controller and Views

To create a new controller and its associated views using the Rails Controller Wizard:

  1. Open the Rails Controller Wizard Open Console
    From the workbench select:
    File | New | Rails Controller.
  2. Assign the Project and Name the Controller.
  3. Assign the desired Views and click Finish.

To create a controller in the Rails Console, type:

script/generate controller {controllername}
Related Tasks Grouping Controllers into Namespaces
Corporate LogoCodeGear brand and product names are service marks, trademarks or registered trademarks of Borland Software Corporation in the United States and other countries.