Sha256: a75961e56ce9269a0a1d792b32757ee66d5bea12e7f1966de877326378a8d0d6

Contents?: true

Size: 1.18 KB

Versions: 41

Compression:

Stored size: 1.18 KB

Contents

Description:
  Generate an action that processes a model of choice for its parent.

Example:
  E.g. Generate a CSV Importer that creates many Listings on a Team.
    rails generate super_scaffold:action_models:targets_one_parent CsvImport Listing Team

  This will create:
    app/avo/resources/listings_csv_import_action.rb
    app/controllers/account/listings/
    app/controllers/api/v1/listings/
    app/controllers/avo/listings_csv_import_actions_controller.rb
    app/models/listings.rb
    app/models/listings/
    app/views/account/listings/csv_import_actions/
    app/views/api/v1/listings/csv_import_actions/
    config/locales/en/listings/
    db/migrate/20240109100805_create_listings_csv_import_actions.rb
    test/controllers/api/v1/listings/
    test/factories/listings/
    test/models/listings/
  And update:
    app/models/team.rb
    app/views/account/listings/_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_one_parent/USAGE
bullet_train-super_scaffolding-1.9.0 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.8.5 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.8.4 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.8.3 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.8.2 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.8.1 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.8.0 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.23 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.22 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.21 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.20 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.19 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.18 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.17 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.16 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.15 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.14 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.13 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE
bullet_train-super_scaffolding-1.7.12 lib/generators/super_scaffold/action_models/targets_one_parent/USAGE