Environment
- Elixir version 1.3.2
- Phoenix version (mix deps): 1.2
- Operating system: macos
Expected behavior
render_errors: [accepts: ~w(html json)]
Errors both works for html or json specified ways.
Actual behavior
html - ok
json - Phoenix.Template.HTML.encode_to_iodata!(%{errors: %{message: "Not Found"}})
BUT! If you define only HTML or JSON at a time in accepts it will work correct.
Environment
Expected behavior
render_errors: [accepts: ~w(html json)]Errors both works for html or json specified ways.
Actual behavior
html - ok
json -
Phoenix.Template.HTML.encode_to_iodata!(%{errors: %{message: "Not Found"}})BUT! If you define only HTML or JSON at a time in
acceptsit will work correct.