Tag Archives: rails 2

Lessons Learned about Timestamps

I ran into an extremely frustrating issue lately where some Rails code periodically behaved in a very unexpected way. After trying everything I could think of, I ran some code in the console to list the occurrences of the behavior, … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Generators in Rails 2.3

The other day I started looking in to how to create generators in Rails 2.3. I came across a couple of articles on the topic that provided a good starting point, still was a bit confused about a couple things. … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Override a Model’s destroy Method Without Losing Callbacks

I needed to do this in Rails 2, and had trouble finding any anything about how it could be done. I did eventually find some information, so I thought I’d share. Here’s how it looked for me:

  Also … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Working in Rails 2 & 3 with rvm

I had wanted to play with Rails 2 a bit, without breaking any of the Rails 3 apps I’m working on. I use rvm anyway, so I thought it would be pretty straightforward. I found instructions for setting it up, … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment