[Radiant] Flash in a tag module

John W. Long ng at johnwlong.com
Mon Apr 23 21:44:53 CDT 2007


Sean Cribbs wrote:
> Tags exist in the Page model (or a subclass) when processing, so they 
> really only have access to the model layer.  *However*, the Page model 
> has available to it the request and response objects.  There are other 
> ways to tackle the problem, but you could try getting the information 
> from the response object.  I believe the flash is stored in the session.
> 
> if response.session['flash'][:error]
>    # do something
> end

No the flash won't work because sessions are off for the SiteController.

So there is really not an easy answer.

--
John Long
http://wiseheartdesign.com



More information about the Radiant mailing list