title: How can I use two Devise's before_filters in one rails controller?
body: <p>If I have two roles in my application,one is admin,another is user,and now I want to give both of them the ability to visit  controller actions  , how should I do this?</p>
  
  <pre><code>class FooController &lt; ApplicationController
    #before_filter is used here,but how?
    def methodA     #index  or new...
      ...
    end
    def methodB     #show  or  edit...
      ...
    end
    ...
  end 
  </code></pre>
  
  <p>There are some helpers that created by Devise:</p>
  
  <pre><code>before_filter :authenticate_admin! 
  
  admin_signed_in?
  
  current_admin
  
  admin_session
  </code></pre>
  
  <p>And in these helpers ,"admin" can be changed to "user".</p>