Category Archives: rails

The Future, Conan?

Why aren’t my fixtures properly loading their ‘registered’ timestamps correctly? Ah, the dreaded Year 2038 issue loads fine: user_registered: ’2038-01-18 21:14:07′ not happy: user_registered: ’2038-01-18 21:14:08′ So, that fixture that I just wanted to have ‘a date way out in … Continue reading

Leave a Comment

Filed under rails, Ruby, SQL

Adding tests to rake

We’ve developed a few batch applications that live in the same directory structure as the Rails app they’re intimate with. So, the lib/foo/test/ contains some tests for the ‘foo’ batch app. lib/bar/test has the ones for ‘bar’ etc. It was … Continue reading

Leave a Comment

Filed under rails, Ruby, Test Driven Development (TDD)

Sex, Drugs, and Rock n’ Roll (and Laszlo on Rails) w/Mike Pence

Mike Pence, self-employed (and sometimes self-unemployed) professional web surfer delivered “Sex, Drugs, and Rock n’ Roll (and Laszlo on Rails)” this morning at RailsConf. The talk began with the “Where are we headed?” question. Users are expecting a much more … Continue reading

2 Comments

Filed under ajax, rails

RailsConf – Day 2

Another great day in Chicago. It's kind of a catch-22: the content is great and there's always something going I want to see… but 12 hour days of sitting and listening are more than I can take! There were two … Continue reading

Leave a Comment

Filed under rails

Ajax On Rails w/Justin Gehtland

Are we still at the point where a talk on ajax must start with the "What is ajax?" question? Well, at least the explanations seem to be getting shorter Justin spent the majority of the presentation showing uncluttered examples of … Continue reading

Leave a Comment

Filed under ajax, rails, Ruby, Uncategorized

RailsConf – Day 1

Rob and I woke up early and made the trip to Chicago for RailsConf. The conference has the general feel of other Jay Zimmerman directed conferences I've attended. Following a fairly brief welcome from Chad Fowler, Rich Kilmer and David … Continue reading

Leave a Comment

Filed under rails, Ruby

Nostalgia

I can tell you what I don’t miss about the Java -> Ruby switch… Ruby: 4.days.ago **** Java: Start with java.util.Date, then use the java.util.DateFormat to… no, wait. Um, I think you need a java.util.Calendar… so check out the API … Continue reading

1 Comment

Filed under rails, Ruby

Remove A Shared Cookie

What's the worst part of making cookies? Cleaning up. Initially, I had set up code to set a cookie in the simplest fashion possible: cookies[:my_cookie] = {:value => 'test', :expires => 1.year.from_now} Cleanup was a snap: cookies.delete :my_cookie That was … Continue reading

Leave a Comment

Filed under Cookies, rails, Ruby

No help from the log

Upon synching up, a colleague noticed that I had a test failing… kinda odd since I've been (trying to be) pretty good about keeping things up to date. Running them myself, we noticed that I was actually experiencing a quiet … Continue reading

Leave a Comment

Filed under rails, Ruby, Test Driven Development (TDD)

Requiring and Testing Cookies

Requirement: Users must have cookies enabled to use the site. If they don't: give them some sort of graceful warning to let them know there's going to be trouble. Doesn't sound too bad… it ended up being much more of … Continue reading

6 Comments

Filed under Cookies, rails, Ruby, Test Driven Development (TDD)