Sha256: f32583d1e4ddb64b523f945000c8e90edd6d2ea83b1def94b241538b3181cedf

Contents?: true

Size: 1.3 KB

Versions: 15

Compression:

Stored size: 1.3 KB

Contents

Description:
    Scaffolds an entire RestfulX resource. The resource is ready to use as a
    starting point for your restful, resource-oriented application.
    
    rx_scaffold :
      1. Generates all required Flex code.
      2. You can pass special belongs_to, has_one and has_many attributes
         to generate appropriate relationships.

    Pass the name of the model, either CamelCased or under_scored, as the first
    argument, and an optional list of attribute pairs.

    Attribute pairs are column_name:sql_type arguments specifying the
    model's attributes. Timestamps are added by default, so you don't have to
    specify them by hand as 'created_at:datetime updated_at:datetime'.
    
    The syntax for belongs_to, has_one and has_many attributes is as follows:
      belongs_to:<relationship_name> or
      belongs_to:<relationship_name>,<another_relationship>,<and_another>

    You don't have to think up every attribute up front, but it helps to
    sketch out a few so you can start working with the resource immediately.

    For example, `rx_scaffold post title:string body:text published:boolean`
    gives you a model with those three attributes.

Examples:
    `./script/generate rx_scaffold project name:string has_many:tasks`
    `./script/generate rx_scaffold task name:string belongs_to:project`

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
captproton-restfulx-1.2.3 rxgen_generators/rx_scaffold/USAGE
dima-restfulx-1.2.0 generators/rx_scaffold/USAGE
dima-restfulx-1.2.1 generators/rx_scaffold/USAGE
dima-restfulx-1.2.2 rxgen_generators/rx_scaffold/USAGE
dima-restfulx-1.2.3 rxgen_generators/rx_scaffold/USAGE
dima-restfulx-1.2.4 rxgen_generators/rx_scaffold/USAGE
rlmattax-restfulx-1.2.4.1 rxgen_generators/rx_scaffold/USAGE
restfulx-1.3.1 rxgen_generators/rx_scaffold/USAGE
restfulx-1.3.0 rxgen_generators/rx_scaffold/USAGE
restfulx-1.2.5 rxgen_generators/rx_scaffold/USAGE
restfulx-1.2.3 rxgen_generators/rx_scaffold/USAGE
restfulx-1.2.4 rxgen_generators/rx_scaffold/USAGE
restfulx-1.2.1 generators/rx_scaffold/USAGE
restfulx-1.2.0 generators/rx_scaffold/USAGE
restfulx-1.2.2 rxgen_generators/rx_scaffold/USAGE