Posted: December 22nd, 2008 | Author: gabe | Filed under: Rails | Tags: named scope, Rails, search | No Comments »
When it comes writing elegant search code in a Rails app, Named Scopes immediately come to mind. And for good reason: they’re a fantastic way to express, well, scopes, for your searches. In your Person model, you might have named scopes like by_last_name, by_age, and by_sex. But, what do you do when you want to give your users a search form and let them find people by any combination of last name, age, and sex?
Read the rest of this entry »
Posted: December 13th, 2008 | Author: gabe | Filed under: iPhone | Tags: xcode codesign | 2 Comments »
Quick tip: if you’re just getting started with iPhone app development and trying to build and run an iPhone app project using the iPhone simulator in Xcode and you’re getting an error that looks like:
CodeSign error: Code Signing Identity ‘iPhone Developer’ does not match any code-signing certificate in your keychain. Once added to the keychain, touch a file or clean the project to continue.
The fix is pretty simple. In the Build Results window (which you probably got to by clicking the error icon in the lower right corner of your project window), change the pulldown menu from ‘Device – iPhone xxx’ to ‘Simulator – iPhone xxx’.
