Ext Scaffold plugin

Plugin details

Scaffolds an entire resource, from model and migration to controller and views, along with a full test suite, just like the standard Rails scaffold generator. The ext_scaffold generator uses the Ext Javascript framwork to build the GUI elements (forms and tables).

Pass the name of the model, either CamelCased or under_scored, as the first argument, and an optional list of attribute pairs.

Attribute pairs are column_name:sql_type arguments specifying the model's attributes. Timestamps are added by default, so you don't have to specify them by hand as 'created_at:datetime updated_at:datetime'.

Websitehttp://inside.glnetworks.de/2008/01/18/announcing-ext-scaffold-generator-plugin-for-rails/ Repositoryhttp://rug-b.rubyforge.org/svn/ext_scaffold/ Tags scaffold LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://rug-b.rubyforge.org/svn/ext_scaffold/

You need to download the Ext Javascript framework from http://extjs.com/download, and unzip it into `#{RAILS_ROOT}/public/ext`. Ext_scaffold was tested against version 2.0 of the Ext framework.

Example use

script/generate ext_scaffold post # no attributes, view will be anemic
script/generate ext_scaffold post title:string body:text published:boolean
script/generate ext_scaffold purchase order_id:integer amount:decimal

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 3 months ago