I have been a fuseboxer for about as long as I have done cf. But the scaffolding features of MG-U looked really appealing. But learning new frameworks can be a daunting task, especially when work comes with deadlines.

I already use ColdSpring and Reactor in my fusebox projects, so the only thing I really needed to grasp was the Model-Glue pieces. This is all very well laid out and it took no time at all to have some basic pages running queries and displaying data. So on to the scaffolds. Adding the CRUD functionality based on a table in my database was stupid simple. In the event-handler section of the model-glue config file you just add a scaffold tag and specify what table you want it to work on. Something like this:



But I had already setup some layout code for the site so I wanted to use that with the scaffolds. So I amended the code like so:







And with that I could visit my site and use the following url to see the list of data from the members table in the database:

http://my-site.com/admin/index.cfm?event=member.list

This also added member.view, member.edit, member.delete and member.commit as events that can be run in my application.

In just a couple lines of code I added a whole bundle of functionality to my site. Enough so actually that I could get the thing out the door and let the client have some time to decide what they would like added.

What came next is was adding functionality to the scaffolded code. But thats a post for next time.