Forum: Ruby on Rails How to protect all controllers under a module

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
virtus (Guest)
on 2006-12-31 01:34
(Received via mailing list)
HI everyone, I'm new to rails, and I have a little question.

I got tree modules, Admin, xml and flash.

I added a before_filter in my application.rb too check if the user is
authenticate. That work great. But when I did that, I had just one
module, the admin one!

Now I would like to apply this filter only on the admin section of my
site( So on the module admin)

How can I do that?

Thanks for any help

Sorry for the bad english!
This topic is locked and can not be replied to.