Forum: Ruby on Rails How to set flash for before_filter :login_system ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3203ed0e608d3bfae1e31282e629ffa2?d=identicon&s=25 peter.fitzgibbons (Guest)
on 2005-11-23 21:41
(Received via mailing list)
Hello all,
I'm using Login Generator ACL
System<http://wiki.rubyonrails.com/rails/pages/LoginGener...
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,
3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 francois.beausoleil (Guest)
on 2005-11-23 22:09
(Received via mailing list)
Use #prepend_before_filter

http://rubyurl.com/pbj
http://api.rubyonrails.com/classes/ActionControlle...

Hope that helps !

2005/11/23, Peter Fitzgibbons <peter.fitzgibbons@gmail.com>:
This topic is locked and can not be replied to.