You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i register using api, i expect it to be restful and receive 201 code if register was successful.
However, render_create_success does not set response code, so it stays 200.
Why is it important at all? well, for example i use rack-minitest, and it has convenient methods like assert_created which expect response to return 201. The method itself
Yes i know, i can redefine methods with my own controller, however i think 201 on success should be default behavior.
The text was updated successfully, but these errors were encountered:
When i register using api, i expect it to be restful and receive 201 code if register was successful.
However, render_create_success does not set response code, so it stays 200.
Why is it important at all? well, for example i use rack-minitest, and it has convenient methods like
assert_created
which expect response to return 201. The method itselfYes i know, i can redefine methods with my own controller, however i think 201 on success should be default behavior.
The text was updated successfully, but these errors were encountered: