Plugins - flex_scaffold
Add to favoritesFlex Scaffold should allow you to swap in and out different view layers on your REST controller. For example, to use the model contact, use flex_scaffold: contact
class ContactsController < ApplicationController
layout 'flex_scaffold'
flex_scaffold :contact (optional - :size => '800x600')
# The following line can be used instead of the generated definitions
# of index, show, new, edit, update, destroy. There is also the action
# schema to look at the data model
...
end
Other files that are created:
/app/flex/contacts/_list.mxml
/app/flex/contacts/_contacts.mxml <-- these are compiled to a swf file
/public/swfs/flex_scaffold/_contacts.swf <-- created via rake flex:app mxml=contacts
/app/views/layout/flex_scaffold.rhtml <-- templated pages
/app/views/flex_scaffold/index.rhtml <-- loads up the swf
http://flexible-rails.rubyforge.org/
svn://rubyforge.org/var/svn/flexible-rails/flex_scaffold/trunk
Rails' (MIT)
Controllers

Does it works in linux operating system i am getting an error while executing rake flex:app mxml=contacts --trace
"Error: Unable to access jarfile C:/FLEXSDK2/lib/mxmlc.jar rake aborted! There has been an error with compilation msg: 256"