New Rails plugin 'Liftoff' is available.

B

Ben Tompkins

http://liftoff.rubyforge.org

Summary

Liftoff is a simple Rails plugin that gets your application
off the ground by generating an initial set of model files from
a single text file in which you specify only the names of the models
and the types of the associations that pertain to them using an
extremely simple DSL called "CAL". CAL stands for
"Compact Association Language" and looks like this (of course,
comments are optional).


#############################################################################
# CAL File for web store.
#
#############################################################################

# A customer places one or more orders.
# An order may request more than one product, which may be requested by
# multiple orders.
# A line item references a single product.

customer < order <> product <= line_item # A line_item must specify
# a
quantity for the product.



# For every order, exactly one invoice shall be generated.
# An invoice may contain multiple line items.

order => invoice < line_item


# A category describes many products and a product may be described by
# multiple categories.

category <> product

#############################################################################
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,349
Members
48,028
Latest member
Rigor4

Latest Threads

Top