Blog
Wednesday 24 April 2013
jQuery No Frills Carousel
The world needs more jQuery carousels, so I'm doing what I can. I was using Tiny Carousel, which was serving my needs just fine, but it mysteriously broke on me so I created this. It that works for you it's recommended over this. It has options, this has none. Install <script src="jquery.no.frills.carousel.min.js"></script> Use <scrip... More
Monday 22 April 2013
Nested attributes validation fails on create new record because parent id has not yet been set
The problem: class Item < ActiveRecord::Base has_many :related_items accepts_nested_attributes_for :related_items end class RelatedItem validates :order, presence: true end This works fine if you're updating an existing item, but when creating a new item, the related item order validation will fail because the item has not been saved yet, and thus has no assigned id. Using :inverse_of will s... More
Monday 08 April 2013
Gitbox vs Tower
I've been using Gitbox for about a year now and I am mostly happy with it. Not happy enough that I didn't wonder if Tower might be a better option. I've been using the demo for a while now and I haven not yet decided that I need to switch. Tower is $65 to Gitbox's $15. As someone who learned command line Git be... More
