Issues with form.serialize

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • donrawe42
    New Member
    • Sep 2007
    • 2

    Issues with form.serialize

    Hi,

    I'm trying to submit a for using remote function and Form.serialize, if I render the contents of the parameter in the controller all I see is [object Object]. I understand that Form.serialize creates the object when the getHash option is set to true but I'm not sure how to access the data that should be in the object. Any suggestions would be greatly appreciated.
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    I haven't used serialize much, but I have seen a couple ways of getting the data.

    You can try [CODE=ruby]Marshal.load(se rialized_data)[/CODE] or
    Code:
    serialized_field[i]['description']
    for i = 0 to number of serialized fields.

    Comment

    Working...