Peter Fitzgibbons
2005-Nov-23 20:38 UTC
How to set flash for before_filter :login_system ?
Hello all, I''m using Login Generator ACL System<http://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, -- Peter Fitzgibbons _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Francois Beausoleil
2005-Nov-23 21:06 UTC
Re: How to set flash for before_filter :login_system ?
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 Fitzgibbons <peter.fitzgibbons@gmail.com>:> I'm using Login Generator ACL System_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails