Plugins - flex_scaffold

StarAdd to favorites

Flex 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

todd

http://flexible-rails.rubyforge.org/

svn://rubyforge.org/var/svn/flexible-rails/flex_scaffold/trunk

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Controllers

Tags

Comments

Add a comment
Arun 24 Jun 2008

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"

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?