On Sat, Jul 4, 2009 at 10:27 AM, Aaron
Day<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> I have a before_filter in the controller where the atom feed is coming
> from. I want it to check the password when entering that area but not
> when a user wants to view the rss feed. Is there a way I can use the
> :except here? It''s the before_filter on index that makes this
happen.
Is the RSS feed generated within the index action?
I tend to find that if I''m exposing a feed, it usually contains the
same info as the index action (although I might have to hide some
links from non-authenticated users)
Therefore, I can just do :except => :index
If you need to keep index locked down, move your feed to a feed action
and expose that using :except => :feed
Andrew Timberlake
http://ramblingsonrails.com
http://MyMvelope.com - The SIMPLE way to manage your savings