Sha256: f0487a4879a22a7ee4c0642c35795365bdc63a9ccc2ca33e793d889d5579d8b4

Contents?: true

Size: 881 Bytes

Versions: 93

Compression:

Stored size: 881 Bytes

Contents

Description:
    Stubs out a scaffolded controller, its seven RESTful actions and related
    views. Pass the model name, either CamelCased or under_scored. 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

93 entries across 75 versions & 17 rubygems

Version Path
railties-3.2.14.rc1 lib/rails/generators/rails/scaffold_controller/USAGE
swipe-rails-0.0.5 vendor/bundle/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/railties-3.2.12/lib/rails/generators/rails/scaffold_controller/USAGE
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
challah-1.0.0.beta3 vendor/bundle/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
challah-1.0.0.beta2 vendor/bundle/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
challah-1.0.0.beta vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold_controller/USAGE
challah-1.0.0.beta vendor/bundle/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/generators/rails/scaffold_controller/USAGE