我在最后一步注册用户时收到此错误,用户已注册,但我不知道为什么会出现此错误。
private
def redirect_to_finish_wizard
redirect_to root_url, notice: "Thanks for signing up."
end
请任何解决方案
答案 0 :(得分:2)
尝试更改您的redirect_to_finish_wizad
方法,如下所示:
private
def redirect_to_finish_wizard(options = nil)
redirect_to root_path , notice: "Thank you for signing up."
end
这将解决您的问题。有关方法的更多信息,请查看here。
答案 1 :(得分:0)
gem似乎再次被修改,redirect_to_finish_wizard
方法接受2个参数而不是1.
如果以前的代码中断,请尝试更改redirect_to_finish_wizard
方法,如下所示:
private
def redirect_to_finish_wizard(options = nil, params = nil)
redirect_to root_path , notice: "Thank you for signing up."
end