Sha256: 94ccee46430eadf428bc6f45d15443c16e11854b2c9e6b198d6fbfb6b43448c7

Contents?: true

Size: 783 Bytes

Versions: 12

Compression:

Stored size: 783 Bytes

Contents

sc_controller - Create a new controller object in your SproutCore client.

USAGE:

  ./script/generate controller client_name/controller_name [CLASS]
  
DISCUSSION:

This generator will create a new SproutCore object in your client for us as a controller.  You should pass as the first parameter your client directory name/the controller you want to create.  For example:

./script/generate controller todos/task

defines a new object called Todos.taskController in the file clients/todos/controllers/task.js.

This generator creates objects that inherit from SC.Object. You can override this by passing a classname as the second parameter.  You can also use the specialize sc_object_controller and sc_collection_controller generators to create those specific types of controllers.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sproutcore-0.9.11 sc_generators/controller/USAGE
sproutcore-0.9.1 generators/controller/USAGE
sproutcore-0.9.0 generators/controller/USAGE
sproutcore-0.9.10 sc_generators/controller/USAGE
sproutcore-0.9.2 generators/controller/USAGE
sproutcore-0.9.4 generators/controller/USAGE
sproutcore-0.9.3 generators/controller/USAGE
sproutcore-0.9.5 generators/controller/USAGE
sproutcore-0.9.9 generators/controller/USAGE
sproutcore-0.9.6 generators/controller/USAGE
sproutcore-0.9.7 generators/controller/USAGE
sproutcore-0.9.8 generators/controller/USAGE