<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer" nil="true"></assigned-user-id>
  <attachments-count type="integer">1</attachments-count>
  <closed type="boolean">false</closed>
  <created-at type="datetime">2009-06-26T15:12:01+01:00</created-at>
  <creator-id type="integer">51936</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer">9903</milestone-id>
  <number type="integer">2842</number>
  <permalink>error-in-rest-when-i-try-to-serialize-array</permalink>
  <priority type="integer">1936</priority>
  <project-id type="integer">8994</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>incomplete</state>
  <tag nil="true"></tag>
  <title>Error in Rest when I try to serialize Array </title>
  <updated-at type="datetime">2009-09-15T20:37:13+01:00</updated-at>
  <user-id type="integer">51936</user-id>
  <user-name>Mauricio Eduardo Szabo</user-name>
  <creator-name>Mauricio Eduardo Szabo</creator-name>
  <url>http://rails.lighthouseapp.com/projects/8994/tickets/2842</url>
  <milestone-title>2.x</milestone-title>
  <original-body>If I create a rails application, create a model like this:

class Person &lt; ActiveRecord::Base
  serialize Array :course_years
end

and, for example, insert a person using:
Person.create! :name =&gt; 'Mauricio', :course_years =&gt; [1992, 2008]


When I try to access this controller using RESTFul (Using ActiveResource::Base) I got the following error:

ArgumentError: expected an attributes Hash, got 1992</original-body>
  <latest-body>If I create a rails application, create a model like this:

class Person &lt; ActiveRecord::Base
  serialize Array :course_years
end

and, for example, insert a person using:
Person.create! :name =&gt; 'Mauricio', :course_years =&gt; [1992, 2008]


When I try to access this controller using RESTFul (Using ActiveResource::Base) I got the following error:

ArgumentError: expected an attributes Hash, got 1992</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;If I create a rails application, create a model like this:&lt;/p&gt;
&lt;p&gt;class Person &amp;lt; ActiveRecord::Base serialize Array
:course_years end&lt;/p&gt;
&lt;p&gt;and, for example, insert a person using: Person.create! :name
=&amp;gt; 'Mauricio', :course_years =&amp;gt; [1992, 2008]&lt;/p&gt;
&lt;p&gt;When I try to access this controller using RESTFul (Using
ActiveResource::Base) I got the following error:&lt;/p&gt;
&lt;p&gt;ArgumentError: expected an attributes Hash, got 1992&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>If I create a rails application, create a model like this:

class Person &lt; ActiveRecord::Base
  serialize Array :course_years
end

and, for example, insert a person using:
Person.create! :name =&gt; 'Mauricio', :course_years =&gt; [1992, 2008]


When I try to access this controller using RESTFul (Using ActiveResource::Base) I got the following error:

ArgumentError: expected an attributes Hash, got 1992</body>
      <body-html>&lt;div&gt;&lt;p&gt;If I create a rails application, create a model like this:&lt;/p&gt;
&lt;p&gt;class Person &amp;lt; ActiveRecord::Base&lt;br&gt;
serialize Array :course_years end&lt;/p&gt;
&lt;p&gt;and, for example, insert a person using:&lt;br&gt;
Person.create! :name =&amp;gt; 'Mauricio', :course_years =&amp;gt; [1992,
2008]&lt;/p&gt;
&lt;p&gt;When I try to access this controller using RESTFul (Using
ActiveResource::Base) I got the following error:&lt;/p&gt;
&lt;p&gt;ArgumentError: expected an attributes Hash, got 1992&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-26T15:12:01+01:00</created-at>
      <creator-id type="integer">51936</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2842</number>
      <permalink>error-in-rest-when-i-try-to-serialize-array</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Error in Rest when I try to serialize Array </title>
      <updated-at type="datetime">2009-06-26T15:12:03+01:00</updated-at>
      <user-id type="integer">51936</user-id>
      <user-name>Mauricio Eduardo Szabo</user-name>
      <creator-name>Mauricio Eduardo Szabo</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2842</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Can you provide all of the code that produces this (including the ARes code) or a failing Rails test? Either will do :)</body>
      <body-html>&lt;div&gt;&lt;p&gt;Can you provide all of the code that produces this (including
the ARes code) or a failing Rails test? Either will do :)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-07-02T19:14:29+01:00</created-at>
      <creator-id type="integer">51936</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2842</number>
      <permalink>error-in-rest-when-i-try-to-serialize-array</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>incomplete</state>
      <tag nil="true"></tag>
      <title>Error in Rest when I try to serialize Array </title>
      <updated-at type="datetime">2009-07-02T19:14:36+01:00</updated-at>
      <user-id type="integer">12714</user-id>
      <user-name>Yehuda Katz (wycats)</user-name>
      <creator-name>Mauricio Eduardo Szabo</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2842</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Ok, attached is a tarball that contains a simple rails application, with the ARes code. Hope it helps :-)</body>
      <body-html>&lt;div&gt;&lt;p&gt;Ok, attached is a tarball that contains a simple rails
application, with the ARes code. Hope it helps :-)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-07-02T19:58:16+01:00</created-at>
      <creator-id type="integer">51936</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2842</number>
      <permalink>error-in-rest-when-i-try-to-serialize-array</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>incomplete</state>
      <tag nil="true"></tag>
      <title>Error in Rest when I try to serialize Array </title>
      <updated-at type="datetime">2009-07-07T08:31:31+01:00</updated-at>
      <user-id type="integer">51936</user-id>
      <user-name>Mauricio Eduardo Szabo</user-name>
      <creator-name>Mauricio Eduardo Szabo</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2842</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>I'm sorry, but why is this still incomplete? Is there anything else, besides the attachment, that still needs to be done?

Thanks</body>
      <body-html>&lt;div&gt;&lt;p&gt;I'm sorry, but why is this still incomplete? Is there anything
else, besides the attachment, that still needs to be done?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-09-15T20:37:10+01:00</created-at>
      <creator-id type="integer">51936</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2842</number>
      <permalink>error-in-rest-when-i-try-to-serialize-array</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>incomplete</state>
      <tag nil="true"></tag>
      <title>Error in Rest when I try to serialize Array </title>
      <updated-at type="datetime">2009-09-15T20:37:13+01:00</updated-at>
      <user-id type="integer">51936</user-id>
      <user-name>Mauricio Eduardo Szabo</user-name>
      <creator-name>Mauricio Eduardo Szabo</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2842</url>
      <milestone-title>2.x</milestone-title>
    </version>
  </versions>
  <attachments type="array">
    <attachment type="Attachment">
      <code>c9d5e90a5d02200b100213dbb1d4a7862224d5a0</code>
      <content-type>application/x-gzip</content-type>
      <created-at type="datetime">2009-07-02T19:58:16+01:00</created-at>
      <filename>rest_error.tgz</filename>
      <height type="integer" nil="true"></height>
      <id type="integer">181085</id>
      <size type="integer">80858</size>
      <uploader-id type="integer">51936</uploader-id>
      <width type="integer" nil="true"></width>
      <url>http://rails.lighthouseapp.com/attachments/181085/rest_error.tgz</url>
    </attachment>
  </attachments>
</ticket>
