Sha256: ab99d670c7c1ac48e3dc1d81bd1afd1378947ca9a370f975a62b879de1af5d3c

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

Description:
    Scaffolds an entire application based on db/model.yml file. This generator
    transforms entries in db/model.yml into command line calls to 
    "ruboss_scaffold".
    
    ruboss_scaffold delegates the underlying rails code generation to "scaffold"
    and extends it in a number of ways:
      1. Generates all required Flex code.
      2. You can pass special belongs_to, has_one and has_many attributes
         to generate *all* appropriate relationships. No more manual code
         editing.

Examples:
    `./script/generate ruboss_yaml_scaffold`
    
Sample Model File:
    project:
     - name: string
     - notes: text
     - start_date: date
     - end_date: date
     - completed: boolean
     - belongs_to: [user]
     - has_many: [tasks]

    location:
     - name: string
     - notes: text
     - belongs_to: [user]
     - has_many: [tasks]

    task:
     - name: string
     - notes: text
     - start_time: datetime
     - end_time: datetime
     - completed: boolean
     - next_action: boolean
     - belongs_to: [project, location, user]

    note:
     - content: text
     - belongs_to: [user]

    user:
     - login: string
     - first_name: string
     - last_name: string
     - email: string
     - has_many: [tasks, projects, locations]
     - has_one: [note]

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
dima-ruboss4ruby-1.1.1 rails_generators/ruboss_yaml_scaffold/USAGE
dima-ruboss4ruby-1.1.2 rails_generators/ruboss_yaml_scaffold/USAGE
ruboss4ruby-1.1.2 rails_generators/ruboss_yaml_scaffold/USAGE
ruboss4ruby-1.1.0 rails_generators/ruboss_yaml_scaffold/USAGE
ruboss4ruby-1.1.1 rails_generators/ruboss_yaml_scaffold/USAGE