Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Wizards: From WTF to Wicked
Search
Richard Schneeman
April 25, 2012
Programming
3
220
Wizards: From WTF to Wicked
A lightning talk I gave at RailsConf about Wicked
http://github.com/schneems/wicked
Richard Schneeman
April 25, 2012
Tweet
Share
More Decks by Richard Schneeman
See All by Richard Schneeman
[RubyConf] Beware the Dreaded Dead End
schneems
0
220
[Kaigi] Beware the Dead End
schneems
0
79
Threads Aren't Evil
schneems
0
370
Bayes is BAE
schneems
0
2.9k
Testing the Untestable
schneems
1
470
SLOMO
schneems
2
720
Saving Sprockets
schneems
8
16k
Memory Leaks, Tweaks, and Techniques
schneems
1
150
Speed Science
schneems
20
34k
Other Decks in Programming
See All in Programming
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
970
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
180
Site Reliability Engineering for GMO
pyama86
8
1.1k
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
120
What We Can Learn From OSS
inouehi
0
440
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
220
Go製Webアプリケーションのエラーとの向き合い方大全、あるいはやっぱりスタックトレース欲しいやん / Kyoto.go #50
utgwkk
6
1.8k
"config" ってなんだ? / What is "config"?
okashoi
0
320
Micro Frontends for Java Microservices - Utah JUG 2024
mraible
PRO
1
110
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
470
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
9
4.2k
SIMD Parallel Programming with the Vector API
josepaumard
0
230
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
515
39k
Atom: Resistance is Futile
akmur
260
25k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
20
1.6k
Being A Developer After 40
akosma
66
580k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.2k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Bash Introduction
62gerente
605
210k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
A designer walks into a library…
pauljervisheath
201
23k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.7k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Transcript
Wizards: From WTF to Wicked Richard Schneeman @schneems works for
@heroku ‘ ‘
Step By Step Wizards
verywhere
Step 1
Step 2
Step 3
The WTF
class Web::Users::SignupFlowController < Web:: before_filter :ensure_authenticated ## FLOW # ############################################
# signed up with facebook => :confirm # signed up with form => :find_friends ############################################
None
W
T
F
None
What if Everything
None
You ever wanted
None
(about step-by-step w izards)
Came
In
a
RUBY GEM
Introducing
Wicked ‘ ‘
Wicked ‘ ‘ rocket edition
include Wicked::Wizard
zOMG So Cool
steps :add_zip, :add_twitter
/views /after_register /add_zip.html.erb /add_twiter.html.erb
render_wizard
steps :add_zip, :add_twitter def show @user = current_user render_wizard end
def update @user = current_user @user.update_attributes(params[:user]) render_wizard @user end
class AfterRegisterController < ApplicationCon include Wicked::Wizard steps :add_zip, :add_twitter def
show @user = current_user render_wizard end def update @user = current_user @user.update_attributes(params[:user]) render_wizard @user end end
It’s a state machine!!
Wicked ‘ ‘ by @schneems Use