Flex Scaffold plugin

Plugin details

Flex Scaffold should allow you to swap in and out different view layers on your REST controller.

Websitehttp://flexible-rails.rubyforge.org/ Repositorysvn://rubyforge.org/var/svn/flexible-rails/flex_scaffold/trunk Author toddb Tags flex, scaffold LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install svn://rubyforge.org/var/svn/flexible-rails/flex_scaffold/trunk

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         <-- loads up the swf

Further Documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 6 months ago