Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4030760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:30:45+00:00 2026-05-20T11:30:45+00:00

At the beginning of my controller I have filter_resource_access which requires login for all

  • 0

At the beginning of my controller I have filter_resource_access which requires login for all actions on the controller.

However, for one action, I want to have a different authorization mechanism.

There anyway to have a different filter – perhaps a before_filter – for that action only without requiring the login that the parent filter requires ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:30:46+00:00Added an answer on May 20, 2026 at 11:30 am

    For filter_resource_access it looks like you have to change that out for custom before_filters and filter_access_to filters. See here search for ‘filter_resource_access’.

    You can specify which controller actions a filter applies to. You can either exclude or include actions like so:

    before_filter :filter_action, :except => [:index, :edit]
    before_filter :filter_action2, :only => [:index, :edit]
    

    Click here for the associated Rails docs. Check out the ‘Filter chain skipping’ and ‘Filter conditions’ sections.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some common code that runs at the beginning of multiple controller actions.
I have one route that looks like this: Router::connect('/Album/:slug/:id',array('controller' => 'albums', 'action' => 'photo'),array('pass'
I am beginning Rails programming and all I want to accomplish is to have
I have the following situation: I begin with a login screen (which I want
I have two pages load at beginning, login page and register page. Register page
I have a auth-redirect module that is in the beginning of all my page
I have an issue with a View Controller which is loaded from a NIB.
I've been reading the Beginning iPhone 4 Development book and they have one tutorial
I have a question which is mostly answered by this question . However, I
I have been literally pulling my hair out with this one and its beginning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.