0

这很可能是一个调试问题,但我丢失了 Deviseafter_sign_up_path_for和 Wicked 向导开始之间的一条消息。我尝试了多个位置flash.keep无济于事。

有没有办法打印正在发生的确切重定向,以便我可以找出消息丢失的位置?

这是我的注册控制器中的重定向代码:

def after_sign_up_path_for(user)
  logger.debug "entering redirect, flashing"
  flash[:analytics] = "signed_up"
  after_signup_index_path
end 

设计的create方法包含一个redirect_to调用,我在super上面调用,所以我不能redirect_to after_signup_index_path在上面的块中使用 - 这可以解决问题吗?

这是(浓缩的)邪恶巫师动作:

def show
  flash.keep
  @user = current_user
  render_wizard
end
4

0 回答 0