On Apr 2, 3:18 pm, Rob Biedenharn <[email protected]> wrote:
>
> Get the JSON gem for starters.
>
> sudo gem install json
>
> Then in your code:
> require 'rubygems'
> gem 'json'
> require 'json'
I have followed what you said, but still doesn't work. The params
variable still contains weird string like: {"{\"first_name\":\"chamnap
\",\"last_name\":\"chhorn\"}"=>nil, "action"=>"create",
"controller"=>"users"}. Therefore, I could not access through either
params[:first_name] or params[:last_name].
Chamnap
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---