Thanks, That worked great.
On May 7, 8:59 pm, Frederick Cheung <[email protected]>
wrote:
> 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
>
> > You get this instead:
>
> > {id: 1, name: "foo"}
>
> > Can't find a solution for this at all
>
> > Thank you for any help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---