On Apr 2, 2009, at 3:40 AM, Chamnap wrote: > I have searched in this group for a while, and it seems no one face > the same problem like me yet. I am developing a rest web service(post > method) that requires json data format from my javascript client > application. I don't know how to handle since I could not get data > that is being sent. In my controller, params variable got messed with > key and value. I want to know the way how to parse data from this to > ruby object. Any idea is really appreciated.
Get the JSON gem for starters. sudo gem install json Then in your code: require 'rubygems' gem 'json' require 'json' -Rob Rob Biedenharn http://agileconsultingllc.com r...@agileconsultingllc.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---