On Sat, Jul 4, 2009 at 10:27 AM, Aaron
Day<[email protected]> 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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to