Flex Scaffold - General Design Notes
Key features:
* Easily scaffold
* Be able to manually compile
* Getting model validation generated out to the client (still working out on full validation conversion)
To do:
* Be able to cutomise views
* Automatic (re)complilation
* Perhaps, auto install flex_sdk2 (this will probably break license - but could have local repository/or checked into a library)
Long run:
I suspect that there will need to split out flex_scaffold and ActionView::Helpers::FlexObjectHelper. I would hope that flex have an equivalent set of helpers as javascript.
Phase I (complete)
* tie in REST (resource) generation for flex_scaffold
* scaffold model for flex viewing (flex_scaffold)
* generate mxml files for model
* compile swf
* transfer swf to public folder
* load page which points flash file (use JavascriptHelper in openLaszlo)
* add CRUD actions on controller
* add return schema onto controller
Phase II
* remove js, styles, etc as generator and put as rake command at startup
* add the view layer as the plugin rather than generator
* duplicate model validation (at compile time) into client (as well as server)
* autocompilation (generator knows whether there were changes)
Phase III
* configurable scaffold see ajax_scaffold [ajaxscaffold.stikipad.com/doc/show/4.0+Design+Docs]
flex_scaffold :task do
table :only => [ :name, :role ]
form :except => [ :created_at, :updated_at ]
columns do
name do
sort("name.downcase")
is_required
end
end
end
* template the flex code created in generator using helpers (develop ActiveView::Helpers::FlexHelper)
* that is use, rhtml to embed flex within pages (scaffold as a plugin) [unsure whether this will work and/or is desirable]
Phase IV
* multiple models on a page
Edit documentation | (0 older versions) | Last edited by: hardway, 9 months ago

