ERROR: While executing gem (ArgumentError) Illformed requirement

October 4th, 2008 2 Comments

I like to use http://mor.ph to deploy my applications because of its simplicity. The other nice thing is that they give you free developer space so if you are just getting an application up and running or just need to show it to a client you can do so without having to pay a [...]

Tags:   · · · · ·

acts_as_state_machine - state is always nil

July 26th, 2008 No Comments

If you are using the acts_as_state_machine plugin to manage the state of your object keep this in mind:
If you are going to have an object like an order or something similar that likely has a field state_id to relate in a geographic state then you need to be sure to rename the column that acts_as_state_machine [...]

Tags:   · ·

Shoulda Doesn’t like ‘Status’

July 25th, 2008 No Comments

One of the models in a project I am working on right now ends in ’status’. Rails handles that just find but in my tests I started noticing an odd error:

test: Lookup should belong_to lookup_status. (LookupTest):
NameError: uninitialized constant LookupStatu

The Shoulda test looks like this:

should_belong_to :lookup_status

Nothing to complicated there. Should recognizes [...]

Tags:   · ·

ActiveSalesforce and Ruby on Rails > 2.1

July 9th, 2008 4 Comments

We have to do an integration with Saleforce for a Rails project we are working on. I keep getting this error:
The :dependent option expects either :destroy or :delete (:nullify)
I posted to the Salesforce forums and didn’t get any response so I did some more investigation. Turns out there is a bug and a [...]

Tags:   · · · · ·

Kill Internet Explorer With CSS

February 27th, 2008 No Comments

We got a call today at The Plan Collection that was interesting. A guy was trying to print out one of our pages. Each time he tried his browser would crash. At first I thought, “that is just nuts. Html can’t crash your browser.” Then Jake tried it and it [...]

Tags:   · ·