Wow, I really like this ResfulX framework... like they read my mind.
Check this:


http://wiki.github.com/dima/restfulx/getting-started-with-restfulx-and-ruby-on-rails

---
Using YAML to scaffold your Flex + Rails application

Scaffolding is a cool way to get started with a Rails (and now Flex)
applications quickly. Unfortunately, things tend to become quite
cumbersome once you get beyond 5 or so models. You have to
individually run scaffolding for each model and then go and edit
relationships in both rails and flex code. This approach just doesn’t
scale. You might tolerate doing all this manual work for a few models,
but what are you going to do when you have to run pretty much the same
command 30 or 40 times and then remember how all these things relate
to each other? Wouldn’t it be better if you could specify the bulk of
your data model in some easy to read file and just run that once?

This is basically the intuition behind a generator that comes with
restfulx gem. It’s called rx_yaml_scaffold.

Now comes the cool stuff. Let’s create a file called db/model.yml that
contains the following:

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]
---

This is exactly what I proposed for the Hobo framework as I also
clearly saw this need ;)

--

You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


Reply via email to