Forum: Ruby on Rails json - composite objects

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
karl (Guest)
on 2009-06-06 16:49
(Received via mailing list)
hi everyone,

i came across a very strange thing. i'm using ajax with jquery. when i
build up the parameters as json i'm creating my data to pass like
this : "{ picture: { photo: this.value, visible: 1, title: '',
description: '' }, bla: '' }" . as far as i know this should be the
right json syntax. when i'm reading the params im my controller i'm
getting this "{"bla"=>"", "id"=>"3", "picture"=>"[object Object]",
"_"=>"1244292346625"}" as a consequence the stringfy_keys method is
not found and i can't process.
does anyone have a clue what i'm missing and give me a hint?

greetings, karl
This topic is locked and can not be replied to.