8

I try to reproduce http://railscasts.com/episodes/346-wizard-forms-with-wicked railscast. I try to create report in four steps wizard. I

  1. generate controller report_steps
  2. add resources :report_steps to routes.rb
  3. create steps views

Now I try to call it(like in railscats by typing localhost:3000/report_steps/step1 in address bar in browser) and receive:

Routing Error

uninitialized constant ReportStepsController::Wicked

What is the problem? I use ruby 1.9 2 and rails 3.0.12.

UPD: after commenting and uncommenting include Wicked::Wizard behaviour changed(it's a kind of magic) and now I receive new error:

NameError in ReportStepsController#show

uninitialized constant ReportStep 
Alex Teut
  • 844
  • 9
  • 20

1 Answers1

0

Sounds like you are missing something in/with your model. Do you have a model Report?

Also could you post the related code (controller, model, eventually helpers) on here? That would help a lot finding the point where constant ReportStep is actually used.

PhilG
  • 1,253
  • 1
  • 9
  • 18