ArgumentError (wrong number of arguments (1 for 0)) redirect_to_finish_wizard crashing your Wicked wizard
After updating to the latest version of the Wicked gem I started receiving this error:
ArgumentError (wrong number of arguments (1 for 0)) app/controllers/user_steps_controller.rb:25:in `redirect_to_finish_wizard'
I had to look into the Wicked source and found out, there has been some undocumented modifications (the finish_wizard_path call)
See https://github.com/schneems/wicked/blob/master/lib/wicked/controller/concerns/render_redirect.rb at the bottom of the file.
This is how I got it working again.
...
private
def finish_wizard_path
dashboard_path
end
def redirect_to_finish_wizard(options = nil)
redirect_to finish_wizard_path, notice: "Thank you for signing up."
end
Hope this helps someone save some time!












