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
260
[Kaigi] Beware the Dead End
schneems
0
84
Threads Aren't Evil
schneems
0
430
Bayes is BAE
schneems
0
3k
Testing the Untestable
schneems
1
540
SLOMO
schneems
2
790
Saving Sprockets
schneems
8
16k
Memory Leaks, Tweaks, and Techniques
schneems
1
160
Speed Science
schneems
20
35k
Other Decks in Programming
See All in Programming
ぼっちを避けて楽しむためのアノテコノテ / Various Tips and Tricks to Avoid Loneliness and Have Fun
nrslib
3
1.7k
Android開発者のための Kotlin Multiplatform入門
ntaro
0
190
20240706_CDKConf
takuyay0ne
0
1.2k
継続的な活動で築く地方エンジニアの道
myamashii
2
360
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.9k
はしめてのプログラミングとロボット制御
watawatavoltage
0
290
APIのない大学ログインWebサービスをWKWebViewとJavaScriptでアプリ化した話
akidon0000
1
330
HMSコンペ 11th Solution (team : kansai-kaggler)
t88
1
680
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
190
開発部に不満を持っていたCSがエンジニアにジョブチェンしてわかった「勝手に諦めない」ことの大切さ
sakuraikotone
28
16k
Introduction of Happy Eyeballs Version 2 (RFC8305) to the Socket library
coe401_
1
220
小さな開発会社を作った理由
polidog
0
1.9k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
248
20k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
Become a Pro
speakerdeck
PRO
15
4.8k
From Idea to $5000 a Month in 5 Months
shpigford
377
46k
StorybookのUI Testing Handbookを読んだ
zakiyama
15
4.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
90
47k
Building Effective Engineering Teams - LeadDev
addyosmani
47
2.2k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
The Language of Interfaces
destraynor
151
23k
The Mythical Team-Month
searls
217
43k
A Philosophy of Restraint
colly
200
16k
Bootstrapping a Software Product
garrettdimon
PRO
304
110k
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