On Saturday, July 6, 2013 9:14:09 PM UTC+1, G-money wrote: > > Hey, > > I was thinking I'd have my controllers do double-duty: the same actions > handling json and html requests differentially. For this, it's useful that > Rails 3.2 automatic params hash conversion from json work (as described > here<http://guides.rubyonrails.org/v3.2.13/action_controller_overview.html#json-xml-parameters>in > the Rails docs). (I'm using ruby 1.9.2.) But it doesn't, that is, it > seems I am required to decode the json params explicitly. Why? >
Is the thing making the requests setting the content type to application/json ? Fred -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e80a03f0-6fe4-4f30-ab8e-0772aab353f9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

