Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application is not redirecting when use an engine #188

Open
houmanka opened this issue Dec 11, 2013 · 1 comment
Open

Application is not redirecting when use an engine #188

houmanka opened this issue Dec 11, 2013 · 1 comment

Comments

@houmanka
Copy link

Hi guys,
Sorry for asking this question here. It is not the issue with this gem. I am just desperate so I thought I can get help faster in here.

I have mounted an engine to my application. Then I changed the application_controller.rb in the engine to class ApplicationController < ActionController::ApplicationController. When I use filter_resource_access in the engine controller I get that page is not redirecting properly.

Any idea why this happen? technically it should redirecting the page to the root and tell me that I am not authorize to view this page.

@houmanka
Copy link
Author

After permission denied:
Here is the log
: Redirected to http://0.0.0.0:3000/blog/
: Filter chain halted as :filter_access_filter rendered or redirected
: Completed 302 Found in 3ms (ActiveRecord: 0.3ms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant