Does any body know how I can output JSON so that instead of getting:
{booking: {id: 1, name: “foo”}
You get this instead:
{id: 1, name: “foo”}
Can’t find a solution for this at all
Thank you for any help.
Does any body know how I can output JSON so that instead of getting:
{booking: {id: 1, name: “foo”}
You get this instead:
{id: 1, name: “foo”}
Can’t find a solution for this at all
Thank you for any help.
On 7 May 2009, at 12:37, lyntaff [email protected] wrote:
Does any body know how I can output JSON so that instead of getting:
{booking: {id: 1, name: “foo”}
There should be an initializer in your app called something like
new_rails_defaults.rb that shows you how to control this
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs