This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Loren Johnson (author)
Sat May 03 17:02:13 -0700 2008
commit 3b6ab16ce4f5aa220714d3beecb47d369df80a28
tree 902d36474679bc3594f9836f828f7c402118f0af
parent 649c73694fed4218b0a183e31c2a08b3018abe85 parent 79202da1ca7ad07f162a82f3874174a441951899
tree 902d36474679bc3594f9836f828f7c402118f0af
parent 649c73694fed4218b0a183e31c2a08b3018abe85 parent 79202da1ca7ad07f162a82f3874174a441951899
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | Sat May 03 10:53:49 -0700 2008 | |
| |
Rakefile | Fri May 02 16:01:31 -0700 2008 | |
| |
init.rb | ||
| |
lib/ | Sat May 03 16:57:13 -0700 2008 | |
| |
spec/ | Sat May 03 16:57:13 -0700 2008 | |
| |
tasks/ |
RestfulWorkflow
===============
This plugin provides interview-style workflow in a controller, similar to
TurboTax, but without the need to save models to the database immediately.
All data is stored in the session unless overridden.
Using this DSL implements the 'show' and 'update' actions in your controller,
so please do not override those unless you wish to break the workflow. When
rendering, each step will look for a template of the same name.
Example
=======
class InterviewController < ApplicationController
stage do |steps|
steps.start do
data do
column :first_name, :type => :string
validates_presence_of :first_name
end
end
steps.contact_info do
before { @name = self.class.find_step('start').load_data(self).first_name }
data do
column :email, :type => :string
column :accept, :type => :boolean
validates_acceptance_of :accept
end
forward "/profile"
end
end
end
Copyright (c) 2008 Sean Cribbs and Loren Johnson, released under the MIT
license












