Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Wizards: From WTF to Wicked

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

More Decks by Richard Schneeman

Other Decks in Programming

Transcript

  1. class Web::Users::SignupFlowController < Web:: before_filter :ensure_authenticated ## FLOW # ############################################

    # signed up with facebook => :confirm # signed up with form => :find_friends ############################################
  2. W

  3. T

  4. F

  5. In

  6. a

  7. 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