Sha256: 870a6a3c782f34e70aedbcf854c52d8045c48fb1d65c7bf8fda782ffa50aa02b

Contents?: true

Size: 888 Bytes

Versions: 158

Compression:

Stored size: 888 Bytes

Contents

Description:
    Stubs out a scaffolded controller and its views. Pass the model name,
    either CamelCased or under_scored, and a list of views as arguments.
    The controller name is retrieved as a pluralized version of the model
    name.

    To create a controller within a module, specify the model 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 scaffold_controller CreditCard`

    Credit card controller with URLs like /credit_card/debit.
        Controller:      app/controllers/credit_cards_controller.rb
        Functional Test: test/functional/credit_cards_controller_test.rb
        Views:           app/views/credit_cards/index.html.erb [...]
        Helper:          app/helpers/credit_cards_helper.rb

Version data entries

158 entries across 134 versions & 11 rubygems

Version Path
ouvrages_scaffold-0.2.0 lib/generators/ouvrages/controller/USAGE
ouvrages_scaffold-0.1.3 lib/generators/ouvrages/controller/USAGE
ouvrages_scaffold-0.1.2 lib/generators/ouvrages/controller/USAGE
ouvrages_scaffold-0.1.1 lib/generators/ouvrages/controller/USAGE
railties-3.1.12 lib/rails/generators/rails/scaffold_controller/USAGE
ouvrages_scaffold-0.1.0 lib/generators/ouvrages/controller/USAGE
railties-3.1.11 lib/rails/generators/rails/scaffold_controller/USAGE
rails-cancan-bootstrap-scaffold-0.0.1 lib/generators/cancan_bootstrap/controller/USAGE
railties-3.0.20 lib/rails/generators/rails/scaffold_controller/USAGE
railties-3.1.10 lib/rails/generators/rails/scaffold_controller/USAGE
railties-3.0.19 lib/rails/generators/rails/scaffold_controller/USAGE
railties-3.1.9 lib/rails/generators/rails/scaffold_controller/USAGE
railties-3.0.18 lib/rails/generators/rails/scaffold_controller/USAGE
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE
challah-rolls-0.1.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE
challah-0.8.0.pre vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE
challah-0.7.1 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE
challah-0.7.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/scaffold_controller/USAGE