Posted by josh crews on Jan 29th, 2010 | 0 comments

Mike Gunderloy, from his book Rails Rescue Handbook
(from the sample chapter on Tests)
5. Testing Rescues
There are two possible situations when you look at the tests in an application that’s come to you for rescue:
1. There are no tests
2. There are bad tests
Oh, I suppose it’s possible that some day there will be an application that needs to be rehabilitated despite having
an excellent and...
Posted by josh crews on Jan 28th, 2010 | 0 comments

I know a man who went on a suicide mission to destroy death. Here’s the story:
The backdrop
Our first parents, way back, were created not to die. Death came into the world because of sin.
What is sin?
It’s our rejection of God. You can feel it at these rare times when you see that you haven’t even met your own moral-minimum-guidelines, and have no excuse.
Anyway
Anyway,...
Posted by josh crews on Jan 26th, 2010 | 3 comments

I visited Hashrocket, a lead Rails development firm, this afternoon. It’s located on the 7th floor of an office condo building 2 blocks in from the beach and has great views.
There I introduced myself to Sal and Obie who were very kind to us. (Stephie came too, with Chanhassen in the Moby Wrap). I also chatted with Jon Larkowski who I quoted in recent blog post on testing.
Everyone was...
Posted by josh crews on Jan 19th, 2010 | 0 comments

How do I find a search term in Rails that might be in several columns?
named_scope :with_name_or_keyword, lambda { |*args| {:conditions => ["speakers.name like ? OR speakers.bio like ? OR speakers.tagline like ?", ("%#{args.first}%" || ""), ("%#{args.first}%" || ""), ("%#{args.first}%" || "")]} }
will work with something like...
Posted by josh crews on Jan 18th, 2010 | 0 comments

I’ve been helping my church get running on a great church social network service called “The City“. The City is software to run your different groups inside a church, where people can join, create events, have discussions, post needs, prayer requests and photos. All the information is private within the group, and the homepage of “The City” shows you a news feed...