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.0.4.rc1 lib/rails/generators/rails/controller/USAGE
railties-3.0.3 lib/rails/generators/rails/controller/USAGE
railties-3.0.2 lib/rails/generators/rails/controller/USAGE
railties-3.0.1 lib/rails/generators/rails/controller/USAGE
railties-3.0.0 lib/rails/generators/rails/controller/USAGE
railties-3.0.0.rc2 lib/rails/generators/rails/controller/USAGE
railties-3.0.0.rc lib/rails/generators/rails/controller/USAGE
railties-3.0.0.beta4 lib/rails/generators/rails/controller/USAGE
railties-3.0.0.beta3 lib/rails/generators/rails/controller/USAGE
railties-3.0.0.beta2 lib/rails/generators/rails/controller/USAGE