Join Newsletter


Share with:

Recent Posts

Jason Fleetwood-Boldt

This is to fix build, slug, and caching problems related to asset compilation during slug compilation. Everyone needs a little spring cleaning, right? No, really. Sometimes when I switch around buildpacks or change up assets I run into a strange asset cache problem. Here's the...

Read More

My colleagueReid Cooper and I discovered a nice little trick of controller concerns, something we sometimes call "behaviors" in our app (typically implemented as modules). We found a trick from this link that lets us mix in behavior into both a controller and view helper,...

Read More

For Mac OS X users using the "Mail" app: Check your Gmail on the web: Mailvelope Chrome plug-in If you use Outlook on Windows:

Read More

def wait_for_ajax  counter = 0  while page.evaluate_script("typeof($) === 'undefined'")   counter += 1   print "^"   $stdout.flush   sleep(0.1)   raise "Jquery not initialized after 10 seconds." if counter >= 100  end  counter = 0  while page.evaluate_script("$.active > 0")   counter += 1   print "_"   $stdout.flush   sleep(0.1)   if counter >= 100    msg = "AJAX request took longer than 10 seconds."    if page.driver.respond_to?(:console_messages)     msg << " console messages at time...

Read More