This project is archived and is in readonly mode.
Error in Rest when I try to serialize Array
Reported by Mauricio Eduardo Szabo | June 26th, 2009 @ 03:12 PM | in 3.x
If I create a rails application, create a model like this:
class Person < ActiveRecord::Base
serialize Array :course_years end
and, for example, insert a person using:
Person.create! :name => 'Mauricio', :course_years => [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
Comments and changes to this ticket
-
Yehuda Katz (wycats) July 2nd, 2009 @ 07:14 PM
- State changed from new to incomplete
Can you provide all of the code that produces this (including the ARes code) or a failing Rails test? Either will do :)
-
Mauricio Eduardo Szabo July 2nd, 2009 @ 07:58 PM
Ok, attached is a tarball that contains a simple rails application, with the ARes code. Hope it helps :-)
-
Mauricio Eduardo Szabo September 15th, 2009 @ 08:37 PM
I'm sorry, but why is this still incomplete? Is there anything else, besides the attachment, that still needs to be done?
Thanks
-
Rohit Arondekar October 9th, 2010 @ 03:30 AM
- State changed from incomplete to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>