提交 6cb578c0 编写于 作者: J Jorge Bejar

Mention the debug_exception_response_format config in guides

上级 6fa2023c
......@@ -163,6 +163,14 @@ class definition:
config.api_only = true
```
Optionally, in `config/environments/development.rb` add the following line
to render error responses using the API format (JSON by default) when it
is a local request:
```ruby
config.debug_exception_response_format = :api
```
Finally, inside `app/controllers/application_controller.rb`, instead of:
```ruby
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册