Sha256: a2a109510fde1ea71cedbc1fc1c1d862c69bd5237bab1ea31cb566ddaceb96ed

Contents?: true

Size: 1.13 KB

Versions: 41

Compression:

Stored size: 1.13 KB

Contents

Description:
  Generate an action that targets one model.

Example:
  E.g. Perform a schedulable action named Publish for one Listing.
    rails generate super_scaffold:action_models:targets_one Publish Listing Team

  This will create:
    app/avo/resources/listings_publish_action.rb
    app/controllers/account/listings/
    app/controllers/api/v1/listings/
    app/controllers/avo/listings_publish_actions_controller.rb
    app/models/listings.rb
    app/models/listings/
    app/views/account/listings/publish_actions/
    app/views/api/v1/listings/publish_actions/
    config/locales/en/listings/
    db/migrate/20240109095227_create_listings_publish_actions.rb
    test/controllers/api/v1/listings/
    test/factories/listings/
    test/models/listings/
  And update:
    app/models/listing.rb
    app/views/account/listings/show.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.7.11 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.7.10 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.7.9 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.7.3 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.7.2 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.7.1 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.7.0 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.38 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.37 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.36 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.35 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.34 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.33 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.32 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.31 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.30 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.29 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.28 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.27 lib/generators/super_scaffold/action_models/targets_one/USAGE
bullet_train-super_scaffolding-1.6.26 lib/generators/super_scaffold/action_models/targets_one/USAGE