Sha256: 13b3b785a397280d1223428a85e295894d570ada6e11646b75a08a4332b79a47
Contents?: true
Size: 1.27 KB
Versions: 18
Compression:
Stored size: 1.27 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 "rx_scaffold". rx_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 rx_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
18 entries across 18 versions & 5 rubygems