error.erb 405 B

123456789101112131415161718
  1. {
  2. "response": {
  3. "status": "ERROR",
  4. "errors": [
  5. <%
  6. i = 0
  7. max = @errors.length
  8. @errors.each do |error|
  9. %>
  10. "<%= error %>"
  11. <% if (i + 1) < max %>
  12. ,
  13. <% end %>
  14. <% i = i + 1 %>
  15. <% end %>
  16. ]
  17. }
  18. }