Generator Stage plugin

Plugin details

Stage was born out of a desire to remove as much code as possible from the view. I didn't want to create a new markup, I wanted to use the existing architecture more efficiently.

Websitehttp://blog.stonean.com/2008/01/generator-stage.html Repositoryhttp://stonean.googlecode.com/svn/stage Author Andrew Stone Tags stage, generator LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://stonean.googlecode.com/svn/stage

You use stage just like scaffold:

./script/generate stage author first_name:string last_name:string
exists  app/models/
exists  app/controllers/
exists  app/helpers/
create  app/views/authors
exists  app/views/layouts/
create  app/views/data/
create  app/views/authors/index.html.erb
create  app/views/authors/show.html.erb
create  app/views/authors/new.html.erb
create  app/views/authors/edit.html.erb
create  app/views/authors/_form.html.erb
create  app/views/authors/_data.html.erb
dependency  model
exists    app/models/
exists    test/unit/
exists    test/fixtures/
create    app/models/author.rb
create    test/unit/author_test.rb
create    test/fixtures/authors.yml
create    db/migrate
create    db/migrate/001_create_authors.rb
create  app/controllers/authors_controller.rb
create  app/helpers/authors_helper.rb
route  map.resources :authors

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 20 days ago