--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2cd584c3-a4f0-4ced-9dfa-0b89f61f89d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Your example has an error
{ "id": "abracadabra","data": "good" },(comma is missing){ "id": "abracxxabra","data": "goodsss" }Solutionrender json: JSON.parse(obj).each{|k,v| v.each{|arr| arr.reject!{|x| x == "id" } } if v.class.to_s == "Array"}.to_json
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2cd584c3-a4f0-4ced-9dfa-0b89f61f89d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.