Last active
February 2, 2017 09:47
-
-
Save ukoasis/848bf9a2556a5cf2ccba995ce7485b38 to your computer and use it in GitHub Desktop.
Rails5なAPIで単純に404を返す方法 ref: http://qiita.com/ukoasis/items/53cebcfb9b6c7ee9dbeb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| head :not_found |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| render :nothing => true, :status => 404 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEPRECATION WARNING: `:nothing` option is deprecated and will be removed in Rails 5.1. Use `head` method to respond with empty response body. (called from show at controller.rb:xx) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| head :not_found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment