How to set flash for before_filter :login_system?

Hello all,
I’m using Login Generator ACL
Systemhttp://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem
I want to know if there is a way to set the flash(:notice) before the
before_filter is processed so that the flash() is available on my login
page
?
IE: “regular” user changes URL to an “admin” page, then I want the
login’s
flash to say “Please login as administrator to access that page.” or
something else.

What can I do?

Thanks,

Use #prepend_before_filter

http://rubyurl.com/pbj
http://api.rubyonrails.com/classes/ActionController/Filters/ClassMethods.html#M000122

Hope that helps !

2005/11/23, Peter F. [email protected]: