Module: WizardryHelper

Defined in:
app/helpers/wizardry_helper.rb

Instance Method Summary collapse

Instance Method Details

#wizardry_content(w) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/wizardry_helper.rb', line 2

def wizardry_content(w)
  case w.current_page
  when Wizardry::Pages::QuestionPage
    render_form(w)
  when Wizardry::Pages::CheckYourAnswersPage
    safe_join([render_check_your_answers(w), render_form(w)])
  when Wizardry::Pages::CompletionPage
    render_completion(w)
  end
end