Keep on reading ›
> Team.where(:name => "Testing").where(:conference_id => 1).first=> nil> Team.where(:name => "Testing").where(:conference_id => 1).first_or_initialize=> #<Team id: nil, name: "Testing", conference_id: 1, created_at: nil,...
- Adam Gamble
A bit more about Adam
I am a Senior Developer
Recent Blog Posts
I've recently tried to start writing my methods in such a way that a usercan pass in just about anything they want and get the expected results.I'll go through the normal iterations, and at the end we'll have a methodthat works how just about...Keep on reading ›
So I needed to test a redirect that only happened for IOS devices. I had noidea how to accomplish this with a specific cucumber scenario. So I didwhat any good developer would do. I figured it out.
Here is how:
make a new file...Keep on reading ›
Git Bisect is awesome
So I was attempting to debug a weird bug that cropped up in a releasebranch that hadn't existed before all the original feature branches weremerged. There were quite a few feature branches and changes so I wasscratching my...Keep on reading ›