[Nitro] How iterate efficiently through collection of 'things'?

George Moschovitis george.moschovitis at gmail.com
Tue Sep 6 05:47:57 EDT 2005


> In my login_check action I say:
> 
>         flash[:invalid_login] = true
>         render "login"   # or originally redirect, but no effect
> ...
> 
>   <?r
>     p flash
>     if flash[:invalid_login] ?>
>     <div class="invalid_login">
>       <h2>Invalid login</h2>
>     </div>
>   <?r end ?>

This should work. Flash is alive until the next request. Will have a
look at this.

-g.

-- 
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list