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...
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...
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...
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...
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...
Testing model validations in rspec the short and sweet way There seems to be a divide in the Rails/TDD community over whether you should bother testing your model validations. On the one hand, it's silly...