Sha256: f2acad8ddfac34e347237131174362465bc82964bf5f849659287d81b368b62b

Contents?: true

Size: 818 Bytes

Versions: 230

Compression:

Stored size: 818 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 and test framework generators.

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

    Credit card controller with URLs like /credit_card/debit.
        Controller:      app/controllers/credit_card_controller.rb
        Functional Test: test/functional/credit_card_controller_test.rb
        Views:           app/views/credit_card/debit.html.erb [...]
        Helper:          app/helpers/credit_card_helper.rb

Version data entries

230 entries across 191 versions & 19 rubygems

Version Path
railties-3.2.22.5 lib/rails/generators/rails/controller/USAGE
railties-3.2.22.4 lib/rails/generators/rails/controller/USAGE
railties-3.2.22.3 lib/rails/generators/rails/controller/USAGE
railties-3.2.22.2 lib/rails/generators/rails/controller/USAGE
railties-3.2.22.1 lib/rails/generators/rails/controller/USAGE
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/controller/USAGE
railties-3.2.22 lib/rails/generators/rails/controller/USAGE
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/railties-3.2.12/lib/rails/generators/rails/controller/USAGE
railties-3.2.21 lib/rails/generators/rails/controller/USAGE
railties-3.2.20 lib/rails/generators/rails/controller/USAGE
railties-3.2.19 lib/rails/generators/rails/controller/USAGE
railties-3.2.18 lib/rails/generators/rails/controller/USAGE
railties-3.2.17 lib/rails/generators/rails/controller/USAGE
railties-3.2.16 lib/rails/generators/rails/controller/USAGE
railties-3.2.15 lib/rails/generators/rails/controller/USAGE
railties-3.2.15.rc3 lib/rails/generators/rails/controller/USAGE
railties-3.2.15.rc2 lib/rails/generators/rails/controller/USAGE
railties-3.2.15.rc1 lib/rails/generators/rails/controller/USAGE
railties-3.2.14 lib/rails/generators/rails/controller/USAGE
railties-3.2.14.rc2 lib/rails/generators/rails/controller/USAGE