Sha256: ad32effe3b2decaf83e9ad7bd24d8e1be019e6a58aa3173a9a50af1c83f4620a

Contents?: true

Size: 673 Bytes

Versions: 95

Compression:

Stored size: 673 Bytes

Contents

model - Create a new model class in your SproutCore app.

USAGE:

  sc-gen model AppName.ClassName [--filename=FILENAME] [--target=TARGET_NAME]

DISCUSSION:

This generator will create a new SproutCore model file in your app.  You should pass as the first parameter your AppName.ClassName combination you want to create.  For example:

sc-gen model Todos.Task

defines a new class called Todos.Task in the file apps/todos/models/task.js .

In addition to creating a model class, this will also create a stub for you to add Fixture data.  This is a convenient way to preload your application with data while you develop the client but have not yet connected to your server.

Version data entries

95 entries across 95 versions & 2 rubygems

Version Path
sproutcore-1.11.0 lib/gen/model/USAGE
sproutcore-1.11.0.rc3 lib/gen/model/USAGE
sproutcore-1.11.0.rc2 lib/gen/model/USAGE
sproutcore-1.11.0.rc1 lib/gen/model/USAGE
sproutcore-1.10.3.1 lib/gen/model/USAGE
sproutit-sproutcore-1.0.0.20090407205609 gen/model/USAGE
sproutit-sproutcore-1.0.0.20090408130025 gen/model/USAGE
sproutit-sproutcore-1.0.0.20090416161445 gen/model/USAGE
sproutit-sproutcore-1.0.0.20090720093355 gen/model/USAGE
sproutit-sproutcore-1.0.0.20090720202429 gen/model/USAGE
sproutit-sproutcore-1.0.0.20090721125122 gen/model/USAGE
sproutit-sproutcore-1.0.126 gen/model/USAGE
sproutit-sproutcore-1.0.20090721145236 gen/model/USAGE
sproutit-sproutcore-1.0.20090721145251 gen/model/USAGE
sproutit-sproutcore-1.0.20090721145280 gen/model/USAGE
sproutit-sproutcore-1.0.20090721145281 gen/model/USAGE
sproutit-sproutcore-1.0.20090721145282 gen/model/USAGE
sproutit-sproutcore-1.0.20090721145285 gen/model/USAGE
sproutit-sproutcore-1.0.203 gen/model/USAGE
sproutcore-1.10.2 lib/gen/model/USAGE