This project is archived and is in readonly mode.
rails 3: errors to_xml missing type="array" attribute in xml element
-
Neeraj Singh
- Importance changed from to Low
At the top of ActiveResource base_errors_test.rb following is what we have
def setup ActiveResource::HttpMock.respond_to do |mock| mock.post "/people.xml", {}, %q(<?xml version="1.0" encoding="UTF-8"?><errors><error>Age can't be blank</error><error>Name can't be blank</error><error>Name must start with a letter</error><error>Person quota full for today.</error></errors>), 422, {'Content-Type' => 'application/xml; charset=utf-8'} mock.post "/people.json", {}, %q({"errors":["Age can't be blank","Name can't be blank","Name must start with a letter","Person quota full for today."]}), 422, {'Content-Type' => 'application/json; charset=utf-8'} end endNotice there is no 'type=array'
I guess ActiveResource works fine without 'type=array'.
-
Neeraj Singh
- State changed from new to invalid