Yesterday, while I was refactoring some code, I inadvertently confused myself about the various delete and destroy methods in Ruby and Rails. Between the two, there are over 20 different ways to remove objects, so I suppose I shouldn’t feel too bad I didn’t pick the right one. If you ever wanted to know the best way to make things go away in Rails, you’ve come to the right article.
Posted on February 15th, 2008 in the Rails category |
Permalink |
No Comments »
Calculating dates and times has always been a challenge for programmers. How many days until the next New Years Eve party (oh, did you forget 2008 is a leap year)? How long ago was the last backup (convert that to GMT, please)? What day of the week is 19 days, 42 hours, and 374 minutes from now (and how many milliseconds is that again)? And don’t even get me started on Y2K!
Posted on January 1st, 2008 in the Rails category |
Permalink |
No Comments »
In my last post, I took a critical look at some of the problems and limitations I discovered while setting up Capistrano 2.0 for deploying my Rails app. Now that my frustrations are fully vented, I can share the details of a setup that actually works with DreamHost.
Posted on October 5th, 2007 in the Rails category |
Permalink |
No Comments »
This weekend I set up Capistrano 2.0.0 for the first time. I was very eager to try it, especially given all the glowing blog posts about it. Everyone seems to think it’s the best thing since sliced bread. Capistrano has clearly become the standard for Rails application deployment. But after two days of wrestling with deploy.rb recipes, I have a few issues to share.
Posted on September 30th, 2007 in the Rails category |
Permalink |
1 Comment »