Sha256: 3f8ccd82afcb83a598f59528655ecdf0701726df676b868d3a3643a0f12c6fb9
Contents?: true
Size: 861 Bytes
Versions: 116
Compression:
Stored size: 861 Bytes
Contents
Description: Generates 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: `bin/rails generate scaffold_controller CreditCard` Credit card controller with URLs like /credit_cards. Controller: app/controllers/credit_cards_controller.rb Test: test/controllers/credit_cards_controller_test.rb Views: app/views/credit_cards/index.html.erb [...] Helper: app/helpers/credit_cards_helper.rb
Version data entries
116 entries across 110 versions & 10 rubygems