flash[;notice] not display after redirection

I read all previous posts about the same subject in Devise group but
couldn't find any answer, so iy may not be related to Devise , so
I debugged it ..
class Users::RegistrationsController <
      # POST /resource/sign_up
  def create
    if resource.save
      if resource.active?
        set_flash_message :notice, :signed_up
        sign_in_and_redirect(resource_name, resource)
        set_flash_message :notice, :inactive_signed_up, :reason =>
        redirect_to after_inactive_sign_up_path_for(resource)
      render_with_scope :new

the flash notice is set ... I checked it in the console:

(rdb:2) flash {:notice=>"You have signed up successfully. However, we could not sign

you in because your account is unconfirmed."}

hiwever when the home page is displayed ... ( layout code ..)


= flash.to_yaml

= notice


= alert

Hi, I'm not an expert, I read through twice, and it's seems okay for
me, mostly if it works from console. It might be a bug. Report it I
think, or write to Rails Core Google Group.