Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Error in Rest when I try to serialize Array

#2842

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

Reported by Mauricio Eduardo Szabo · June 26th, 2009 @ 03:12 PM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • 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 :)

    July 2nd, 2009 @ 07:14 PM

  2. Mauricio Eduardo Szabo
    Mauricio Eduardo Szabo

    Ok, attached is a tarball that contains a simple rails application, with the ARes code. Hope it helps :-)

    July 2nd, 2009 @ 07:58 PM

  3. Mauricio Eduardo Szabo
    Mauricio Eduardo Szabo

    I'm sorry, but why is this still incomplete? Is there anything else, besides the attachment, that still needs to be done?

    Thanks

    September 15th, 2009 @ 08:37 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  5. Rohit Arondekar
    Rohit Arondekar
    • 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.

    October 9th, 2010 @ 03:30 AM