# Password needed to view atom feed

**URL:** <https://www.ruby-forum.com/t/password-needed-to-view-atom-feed/171536>\
**Category:** Rails\
**Created:** [July 4, 2009, 10:27am UTC](https://www.ruby-forum.com/t/password-needed-to-view-atom-feed/171536 "2009-07-04T10:27:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adsouzp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Post date:** [July 4, 2009, 10:27am UTC](https://www.ruby-forum.com/t/password-needed-to-view-atom-feed/171536/1 "2009-07-04T10:27:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![adsouzp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Post date:** [July 5, 2009, 6:14am UTC](https://www.ruby-forum.com/t/password-needed-to-view-atom-feed/171536/2 "2009-07-05T06:14:02Z")

</div>

On Sat, Jul 4, 2009 at 10:27 AM, Aaron  
Day[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)

[http://MyMvelope.com](http://MyMvelope.com) - The SIMPLE way to manage your savings
