Sha256: 0b1b907e617dabcc94994fbcba7e5115bdfa1246263861185ac796ef28b1f7b5

Contents?: true

Size: 814 Bytes

Versions: 226

Compression:

Stored size: 814 Bytes

Contents

Description:
    Stubs out a new controller and its views. Pass the controller name, either
    CamelCased or under_scored, and a list of views as arguments.

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

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

Example:
    `rails generate controller CreditCards open debit credit close`

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

Version data entries

226 entries across 216 versions & 16 rubygems

Version Path
railties-5.2.6 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.7 lib/rails/generators/rails/controller/USAGE
railties-5.2.4.6 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.6 lib/rails/generators/rails/controller/USAGE
railties-5.2.5 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.5 lib/rails/generators/rails/controller/USAGE
railties-5.2.4.5 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.4 lib/rails/generators/rails/controller/USAGE
railties-5.2.4.4 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.3 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.2 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.1 lib/rails/generators/rails/controller/USAGE
railties-5.2.4.3 lib/rails/generators/rails/controller/USAGE
railties-4.2.11.3 lib/rails/generators/rails/controller/USAGE
railties-4.2.11.2 lib/rails/generators/rails/controller/USAGE
railties-6.0.3 lib/rails/generators/rails/controller/USAGE
railties-6.0.3.rc1 lib/rails/generators/rails/controller/USAGE
railties-6.0.2.2 lib/rails/generators/rails/controller/USAGE
railties-5.2.4.2 lib/rails/generators/rails/controller/USAGE
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/generators/rails/controller/USAGE