Sha256: c8dad3a441bd6a5c57bc07e570a8334199b4b295b3307fb1c2405886c5cc33ac

Contents?: true

Size: 1.13 KB

Versions: 41

Compression:

Stored size: 1.13 KB

Contents

Description:
  Generate an action that targets many models.

Example:
  E.g. Perform an Archive action that targets many Projects on a Team.
    rails generate super_scaffold:action_models:targets_many Archive Project Team

  This will create:
    app/avo/resources/projects_archive_action.rb
    app/controllers/account/projects/
    app/controllers/api/v1/projects/
    app/controllers/avo/projects_archive_actions_controller.rb
    app/models/projects.rb
    app/models/projects/
    app/views/account/projects/archive_actions/
    app/views/api/v1/projects/archive_actions/
    config/locales/en/projects/
    db/migrate/20240109055956_create_projects_archive_actions.rb
    test/controllers/api/v1/projects/
    test/factories/projects/
    test/models/projects/
  And update:
    app/models/team.rb
    app/views/account/projects/_index.html.erb
    config/models/roles.yml
    config/routes.rb
    config/routes/api/v1.rb

🏆 Protip: Commit your other changes before running Super Scaffolding so it's easy to undo if you (or we) make any mistakes.
If you do that, you can reset to your last commit state by using `git checkout .` and `git clean -d -f`.

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.10.0 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.9.0 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.8.5 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.8.4 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.8.3 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.8.2 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.8.1 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.8.0 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.23 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.22 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.21 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.20 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.19 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.18 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.17 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.16 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.15 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.14 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.13 lib/generators/super_scaffold/action_models/targets_many/USAGE
bullet_train-super_scaffolding-1.7.12 lib/generators/super_scaffold/action_models/targets_many/USAGE