Thursday, June 12, 2008

The "Cuz I'm An Idiot" Bug

My least favorite bug.  I'm working on a widget to get a sample of content from our library, and I start with content of type Careers.  Works fine.  So then I rename it to a more generic getter of all things Content.

But no matter how hard I try, all it will serve up is Careers.  I flush the cache, nothing.  I disable the cache, nothing.  I feed in bad values for content_type, just to generate an error - nothing. 

I grep for hardcoded references to Careers in the code and find that I have, in fact, left one in my original widget.  Where it should say   url=".....?type=#{params[:type]}" so that it passes the type to the service, it instead says "?type=Careers".


No comments: