Skip to the content
Chris Bloom
Father, software engineer, vegetarian, humanist
  • About Me
    • Favorite Quotes
  • Contact Me
  • Home
  • Programming
  • Code Snippets

Code Snippets

Small snippets of code that I find interesting or useful. Generally my own work, but I will cite sources if not.

Bash shortcuts to run Rails commands through Spring, Bundler, or ye olde scripts

Just about a year ago to date I posted some useful Bash shortcuts for Ruby on Rails commands. These are mix of aliases and functions...
February 4, 2015

Cache busting AJAX requests and redirects

AJAX get and head requests are cached by default. This can cause problems when AJAX requests use the same URLs as a user would use...
September 9, 2014April 30, 2015

Dynamic enum fields in nested association forms in Rails Admin

We've had a few projects at Panoptic Development recently that made use of the RailsAdmin gem. Out of the box, RA satisfied about 95% of what...
September 4, 2014October 24, 2018

Some useful Bash shortcuts for Ruby on Rails commands

Read an updated article on my Rails shortcuts: Bash shortcuts to run Rails commands through Spring, Bundler, or ye olde scripts Like any developer, I...
February 21, 2014February 4, 2015

Testing for a redirect using Capybara and Selenium WebDriver

I just spent the better part of 8 hours trying to figure out how to do this. The Selenium WebDriver API docs are pretty bewildering...
March 12, 2012February 1, 2014
  • About Me
    • Favorite Quotes
  • Contact Me
Copyright © 2023 Chris Bloom. All rights reserved.
Theme: Maizzy By Themeinwp. Powered by WordPress.