What if you set a local variable in the Page model? You could use an attr_accessor method called Page#flash.
Or, you could use a cattr_accessor and define some flash methods like this: class Page < ... cattr_accessor :flash def self.flash=(message) @@flash = {} @@flash[:message] = message end def self.flash(key) @@flash.delete(key) end end Obviously, that logic isn't the greatest, and I haven't tested this. If it works though please let us know. On Apr 24, 2007, at 8:30 AM, Matthew Beale wrote: > On Mon, 2007-04-23 at 22:44 -0400, John W. Long wrote: >> 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. >> > > Oh hell that's right. So I could either go in and enable them (alter > radiant), or maybe I'll just hack it instead. > > But yeah, knowing that `response` is in the scope should give me a > start > if I do use sessions. Thanks alot Sean, John. > > -- > Matthew Beale :: 607 227 0871 > Resume & Portfolio @ http://madhatted.com > > _______________________________________________ > Radiant mailing list > Post: Radiant@lists.radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > ------------------------------------------------ Ryan Heneise Art of Mission, Inc. 3720 Gattis School Rd #800 PMB 245 Round Rock, TX 78664 800-722-1492 (phone) www.artofmission.com [EMAIL PROTECTED] _______________________________________________ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant