Skip to content

Return status code 200 when destroying a record from the index page fails#2776

Merged
mshibuya merged 3 commits into
railsadminteam:masterfrom
chamun:destroy_record_from_index_page_status_code_404
Nov 23, 2016
Merged

Return status code 200 when destroying a record from the index page fails#2776
mshibuya merged 3 commits into
railsadminteam:masterfrom
chamun:destroy_record_from_index_page_status_code_404

Conversation

@chamun
Copy link
Copy Markdown
Contributor

@chamun chamun commented Nov 19, 2016

This PR closes issue #2775.

It changes how the index and the dashboard actions decide which status code to return. Instead of relying on flash[:error] to render status code 404, the new instance variable @status_code is used.

Stop returning status code 404 when destroying a record from the index
page fails and returns status 200 instead.
@chamun chamun changed the title Add specs that reproduce issue #2775 Return status code 200 when destroying a record from the index page fails Nov 21, 2016
@mshibuya mshibuya merged commit 482b5ac into railsadminteam:master Nov 23, 2016
@mshibuya
Copy link
Copy Markdown
Member

Looks good, thanks!

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

Successfully merging this pull request may close these issues.

2 participants