Category Archives: Rails

ActiveRecord timestamp Conversions Fail — Sometimes

We recently started to see some timestamp-based tests fail seemingly at random. At first, the usual suspects in the form of time-dependencies were dragged in for a serious round of questioning, but to our surprise none of them were involved. The bad guy, it turns out, was the microsecond handling in ActiveRecord::ConnectionAdapters::Column#fast_string_to_time and ActiveRecord::ConnectionAdapters::Column#microseconds. It [...]

Posted in Rails | Tagged , , , , | 2 Comments

HostbasedAuthentication and net-ssh

A while ago, our Capistrano-based deployment procedure stopped working for some of the developers on the project. Sometimes it would simply “hang” (or at least stall for a very long time before being killed), sometimes it would exit with a Net::SSH::AuthenticationFailed exception when it attempted to connect to the remote servers. The strange thing was [...]

Posted in Rails | Tagged , , | Leave a comment

RESTful Authentication

I work on a Rails application with a standard HTML interface and a REST interface, both of which are served by the same RESTful controllers. Most of the actions used by these interfaces require some form of authentication and authorization. Like most web applications, this one takes a traditional session-based authentication approach for the HTML [...]

Posted in Rails | Tagged , , | 2 Comments

Gem Trouble

I was recently involved in updating a Rails 2.0.2 application to 2.1.1 and part of that task was to update the local Rails installation. So, I naturally tried sudo gem update rails which failed with the message ERROR:  could not find rails locally or in repository

Posted in Rails | Tagged , , | Leave a comment

RailsConf Europe 2008 – Impressions

Late friday I returned from a week in Berlin, most of which took place at the proArte Maritim Hotel, venue for this years RailsConf Europe. It has been an exciting week with many new impressions and ideas, and a chance to meet fellow Rails geeks.

Posted in Rails | Tagged , , | Leave a comment

See you at RailsConf Europe 2008

I really look forward to going to RailsConf Europe 2008 in Berlin tomorrow. The schedule looks very interesting — and busy!

Posted in Rails | Tagged , | Leave a comment