Sha256: fcbdbe29b61df548fe99952ec4a85750df22fab08831af47d415b8f80e33bbc4

Contents?: true

Size: 875 Bytes

Versions: 44

Compression:

Stored size: 875 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
        Test:       test/helpers/credit_cards_helper_test.rb

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
railties-4.1.16 lib/rails/generators/rails/controller/USAGE
railties-4.1.16.rc1 lib/rails/generators/rails/controller/USAGE
railties-4.1.15 lib/rails/generators/rails/controller/USAGE
railties-4.1.15.rc1 lib/rails/generators/rails/controller/USAGE
railties-4.1.14.2 lib/rails/generators/rails/controller/USAGE
railties-4.1.14.1 lib/rails/generators/rails/controller/USAGE
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/rails/controller/USAGE
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/rails/controller/USAGE
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/rails/controller/USAGE
railties-4.1.14 lib/rails/generators/rails/controller/USAGE
railties-4.1.14.rc2 lib/rails/generators/rails/controller/USAGE
railties-4.1.14.rc1 lib/rails/generators/rails/controller/USAGE
railties-4.1.13 lib/rails/generators/rails/controller/USAGE
railties-4.1.13.rc1 lib/rails/generators/rails/controller/USAGE
railties-4.1.12 lib/rails/generators/rails/controller/USAGE
railties-4.1.12.rc1 lib/rails/generators/rails/controller/USAGE
railties-4.1.11 lib/rails/generators/rails/controller/USAGE
railties-4.1.10 lib/rails/generators/rails/controller/USAGE
railties-4.1.10.rc4 lib/rails/generators/rails/controller/USAGE
railties-4.1.10.rc3 lib/rails/generators/rails/controller/USAGE