method

generate

rails latest stable - Class: Rails::Generators::Actions
generate(what, *args)
public

Runs another generator.

generate "scaffold", "Post title:string body:text"
generate "scaffold", "Post", "title:string", "body:text"

The first argument is the generator name, and the remaining arguments are joined together and passed to the generator.