RubyMine 7.0.1 Web Help

Once a model exists in a RubyMine project, it can be shown in a Model Dependency diagram either by adding, or by dragging. So doing, all relationship links between models are built automatically.

It is also possible to remove from view the models that are irrelevant to the current presentation. So doing, no files are physically deleted.

A new model can be created from a Model Dependency diagram, as described in the section Creating Models.

To add a model to a Model Dependency diagram
  1. Press Space.
  2. Type the name of the desired model in the dialog box that opens.

    rm_add_model

  3. Select model from the suggestion list, and press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.
To drag a model to a Model Dependency diagram
  1. Select the desired model in the Rails view.
  2. Drag and drop the selected model to the Model Dependency diagram background.

    rm_drag_model

To remove elements from view
  1. In the diagram, select one or more elements to be deleted.
  2. Press DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDelete or ⌘+BackspaceDelete, Backspace or ⌘ BackspaceDelete, Backspace or ⌘ BackspaceDelete, Backspace or ⌘ BackspaceDelete or ⌘ Backspace.

See Also

Language and Framework-Specific Guidelines:

Web Resources: