Render Wizard steps and views
mainIn your controller actions (like show or update), call render_wizard at the end. By default, Wicked looks for a view file named after the current step within the controller's view directory.
For example, if the step is :confirm_password in AfterSignupController, Wicked will render app/views/after_signup/confirm_password.html.erb.
class AfterSignupController < ApplicationController
include Wicked::Wizard
steps :confirm_password, :confirm_profile, :find_friends
def show
@user = current_user
case step
when :find_friends
@friends = @user.find_friends
end
render_wizard
end
end