Not giving money to Microsoft

Last week I had a great email conversation with the San Diego Ruby Users Group (SDRuby).  I told them “I’m on a mac. I have parallels, but no windows license. I need to test stuff in IE and don’t want to buy Windows. I have absolutely no other reason to use Windows than occasionally testing stuff on IE, thus the full cost of a windows 7 license just isn’t justifiable.”

The response from the group was incredible. It was obvious that this is a pain point for many of us who have turned our backs on Ballmer.

I got seven suggestions. Here’s a breakdown of each followed by my conclusions: (Read More)

Rails Reservation Calendar plugin

Posted On January 11, 2010

Filed under Rails plugin
Tags: , , , , ,

Comments Dropped 9 responses

As Jon mentioned in the last blog posting, we’ve been hard at work on a couple of projects and I am happy to announce the unveiling of our reservation calendar plugin for Ruby on Rails.  It can be found here:

An example of what it looks like in our other “secret” project:

This plugin builds on the ideas and HTML generation outlined in but differs in the underlying model(s) that drive the plugin.  The original plugin used one model that had a start and end date on the model in question.  This modeling did not allow for breaks between the start and end date.  Our new plugin revises this idea and uses two models to hold the data: a parent model that represents a reservation (instead of an event) and a child model that represents one of possibly many, non-contiguous dates for this reservation.

If you want to get up and running quickly, you can check out the test application that we’ve put together to see how all of the moving parts work together.


Hang tight! Things are coming soon…

Posted On January 9, 2010

Filed under Uncategorized

Comments Dropped leave a response

We haven’t written much in the past few weeks for two reasons:

  1. The holidays. So much eating so little time.
  2. Mike and I have been working our asses off on two things that will be announced very shortly. One is an open source project for the Rails community and the other is a for profit business for surf travel. Both will see the light of day before the end of January!

Hang tight….

Chosing the Right Design Bandwagon

Posted On December 15, 2009

Filed under Web Design
Tags: , ,

Comments Dropped leave a response

I nearly made a fatal web design mistake. It could have cost my company it’s future. Why? I almost hopped on the wrong design bandwagon and created a website that wouldn’t have resonated with my users.

(Read More)

Why do I enjoy working for myself so much?

Posted On December 2, 2009

Filed under philosophy
Tags: , ,

Comments Dropped leave a response

While sitting on my meditation cushion this morning this very question crossed my mind.  Like a “good” meditator, I  let it roll thought my consciousness and not get too attached to it.  A little while longer here it comes again.  I took this as a sign that it might be time to chew this over so I did.  This blog posting is the result of that analysis. (Read More)

Getting the right HTML for Rails Nested Model Forms

Last week I had trouble getting Rails’s Nested Model Forms feature to work for me in exactly the way I wanted.  Two things were working against me: 1) No documentation that shows the complete process for nested models from ERB to HTML, to HTTP parameters, to controller code. and 2) Blogs and suggestions I came up with were close, but didn’t work.

Since I was using javascript rather than ERB to create the hidden input tags in the HTML, I needed to know exactly how to construct my tags to tell rails what to do with my nested models. (Read More)

What do test first development and dental floss have in common?

Posted On November 3, 2009

Filed under Testing
Tags: , , , ,

Comments Dropped leave a response

Yes I am going to write another blog posting singing the praises of test first development (be it TDD, BDD or whatever DD is cool now).  What will be new is that I’m going to compare it to something that I avoided doing for almost 36 years on this planet, flossing my teeth regularly.

(Read More)

dynamic has_many association (for lack of a better name)

Yesterday I had one of those moments in Rails where I knew there must be a really good way to do something, there had to be.  But all I could think of was the brute force way.

Technically speaking, I wanted to create collections of child objects on a parent object where the membership of each collection depended on whether the parent and the child shared an attribute in common.

In simpler terms, imagine you have a group blog.  Each post in the blog is written by one of several authors.  A Post belongs to an Author. (Read More)