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

Redirect to Jobs path after destroy #754

Merged
merged 2 commits into from
Dec 4, 2022

Conversation

BilalBudhani
Copy link
Contributor

Currently when a job is deleted the controller redirects back to that job page which throws not found error.

This PR redirects back to the jobs index page which is the expected behaviour.

Currently when a job is deleted the controller redirects back to that job page which throws not found error. 

This PR redirects back to the jobs index page which is the expected behaviour.
Copy link
Owner

@bensheldon bensheldon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for noticing this and fixing it! Really helpful 💖

That linter error can be disabled with a line comment (aside: maybe Rubocop should also warn on redirect_back).

@bensheldon
Copy link
Owner

I made a PR to rubocop-rails: rubocop/rubocop-rails#880

Co-authored-by: Ben Sheldon [he/him] <bensheldon@github.com>
@BilalBudhani
Copy link
Contributor Author

That linter error can be disabled with a line comment (aside: maybe Rubocop should also warn on redirect_back).

I made a PR to rubocop-rails: rubocop/rubocop-rails#880

ah! right. Thanks for helping me with this. I'm in love with this gem ❤️

@bensheldon bensheldon merged commit 8828dd6 into bensheldon:main Dec 4, 2022
@bensheldon bensheldon added the bug Something isn't working label Dec 4, 2022
@bensheldon
Copy link
Owner

@BilalBudhani BilalBudhani deleted the patch-1 branch December 5, 2022 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants