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.20 lib/rails/generators/rails/controller/USAGE
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
railscast-assets-0.0.2 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
railscast-assets-0.0.2 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
backbone-deep-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
challah-0.9.1.beta vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE
railties-3.2.11 lib/rails/generators/rails/controller/USAGE
railties-3.1.10 lib/rails/generators/rails/controller/USAGE
railties-3.0.19 lib/rails/generators/rails/controller/USAGE
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/railties-3.2.10/lib/rails/generators/rails/controller/USAGE
challah-0.9.0 vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/controller/USAGE
railties-3.2.10 lib/rails/generators/rails/controller/USAGE
railties-3.1.9 lib/rails/generators/rails/controller/USAGE
railties-3.0.18 lib/rails/generators/rails/controller/USAGE
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/controller/USAGE
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/controller/USAGE
jquery_regex-0.0.3 vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/controller/USAGE
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/controller/USAGE