I like to use 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 bunch of…
Category: bugs
acts_as_state_machine – state is always nil
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…
Shoulda Doesn’t like ‘Status’
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 </pre> The Shoulda test looks like this: should_belong_to :lookup_status </pre> Nothing to complicated there….
ActiveSalesforce and Ruby on Rails > 2.1
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…
Kill Internet Explorer With CSS
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 crashed Internet Explorer. Then I…