July 2011
2 posts
5 tags
Responding with non-empty JSON when updating a...
Rails 3 responds with an empty object when making PUT requests to update a resource. This could be undesirable for some cases, and certainly is in our case where expect the JSON representation of the modified object as the response.
The quick-fix is easy - we override the default behavior of respond_with using a block that returns forces the response to be the complete JSON...
2 tags
Linker errors with iOS 5 and libz
So this has happened a few times across different projects where my iOS app failed to compile. The first one was particularly sad because when building a static framework that I include in my work app, because of libz. We were referencing libz.1.2.3 which is apparently not included in iOS 5 SDK. I think it only contains version 1.2.5 now. The worst part was that libtool was failing, and it gave...