Sha256: 4a1d93ca0fd292dd9194ab3ac45be99011468c6a166dba3af3841761388200d7

Contents?: true

Size: 862 Bytes

Versions: 181

Compression:

Stored size: 862 Bytes

Contents

Description:
    Stubs out a scaffolded controller, its seven RESTful actions and related
    views. Pass the model name, either CamelCased or under_scored. The
    controller name is retrieved as a pluralized version of the model name.

    To create a controller within a module, specify the model name as a
    path like 'parent_module/controller_name'.

    This generates a controller class in app/controllers and invokes helper,
    template engine and test framework generators.

Example:
    `rails generate scaffold_controller CreditCard`

    Credit card controller with URLs like /credit_card/debit.
        Controller: app/controllers/credit_cards_controller.rb
        Test:       test/controllers/credit_cards_controller_test.rb
        Views:      app/views/credit_cards/index.html.erb [...]
        Helper:     app/helpers/credit_cards_helper.rb

Version data entries

181 entries across 176 versions & 12 rubygems

Version Path
railties-5.1.0.rc1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.0.2 lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.0.2.rc1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.1.0.beta1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-4.2.8 lib/rails/generators/rails/scaffold_controller/USAGE
railties-4.2.8.rc1 lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/rails/scaffold_controller/USAGE
abaci-0.3.0 vendor/bundle/gems/railties-5.0.0/lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.0.1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.0.1.rc2 lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.0.1.rc1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-5.0.0.1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-4.2.7.1 lib/rails/generators/rails/scaffold_controller/USAGE
railties-4.2.7 lib/rails/generators/rails/scaffold_controller/USAGE