Sha256: aab17f1d5e3fb6ddf6635dd5f24acca2d2613b7b18fb571012efb1ec730f7c62

Contents?: true

Size: 1.47 KB

Versions: 38

Compression:

Stored size: 1.47 KB

Contents

Description:

    The controller generator creates a controller geared up to handle
    login and signup for a specific user model. It can also be used as
    a regular hobo_model_controller.

    The generator takes a controller name and a list of views as
    arguments.  The controller name may be given in CamelCase or
    under_score and should not be suffixed with 'Controller'.  To
    create a controller within a module, specify the controller name
    as 'module/controller'.

    The generator creates a controller class in app/controllers with view
    templates in app/views/controller_name, a helper class in app/helpers,
    and a functional test suite in test/functional.

Example:
    ./script/generate controller CreditCard open debit credit close

    Credit card controller with URLs like /credit_card/debit.
        Controller: app/controllers/credit_card_controller.rb
        Views:      app/views/credit_card/debit.rhtml [...]
        Helper:     app/helpers/credit_card_helper.rb
        Test:       test/functional/credit_card_controller_test.rb

Modules Example:
    ./script/generate hobo_user_controller 'admin/credit_card' suspend late_fee

    Credit card admin controller with URLs /admin/credit_card/suspend.
        Controller: app/controllers/admin/credit_card_controller.rb
        Views:      app/views/admin/credit_card/debit.rhtml [...]
        Helper:     app/helpers/admin/credit_card_helper.rb
        Test:       test/functional/admin/credit_card_controller_test.rb

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
hobo-1.1.0 rails_generators/hobo_user_controller/USAGE
hobo-1.0.3 rails_generators/hobo_user_controller/USAGE
hobo-1.1.0.pre4 rails_generators/hobo_user_controller/USAGE
hobo-1.1.0.pre3 rails_generators/hobo_user_controller/USAGE
hobo-1.1.0.pre2 rails_generators/hobo_user_controller/USAGE
hobo-1.1.0.pre0 rails_generators/hobo_user_controller/USAGE
hobo-1.0.2 rails_generators/hobo_user_controller/USAGE
hobo-1.0.1 rails_generators/hobo_user_controller/USAGE
hobo-1.0.0 rails_generators/hobo_user_controller/USAGE
hobo-0.9.106 rails_generators/hobo_user_controller/USAGE
hobo-0.9.105 rails_generators/hobo_user_controller/USAGE
hobo-0.9.104 rails_generators/hobo_user_controller/USAGE
hobo-0.9.103 rails_generators/hobo_user_controller/USAGE
hobo-0.9.102 rails_generators/hobo_user_controller/USAGE
hobo-0.9.101 rails_generators/hobo_user_controller/USAGE
hobo-0.9.100 rails_generators/hobo_user_controller/USAGE
hobo-0.9.0 rails_generators/hobo_user_controller/USAGE
hobo-0.8.10 rails_generators/hobo_user_controller/USAGE
hobo-0.8.9 rails_generators/hobo_user_controller/USAGE
hobo-0.8.8 rails_generators/hobo_user_controller/USAGE