Posts about Rails

ActiveRecord Gotcha

I came across this interesting gotcha while debugging through someone else's rails code. When you set a model's one-to-many attribute(an perhaps other association types as well), let's... more
Posted by Toby on May 01, 09
About programming, ruby, rails and gotcha

Redirect 301

I was looking at Google Analytics today and found that I was getting a bunch of traffic on Use Delicious with Chrome as well as some programming/technical articles, but on the wiki.futuretoby.com... more
Posted by Toby on Apr 19, 09
About programming, rails and web

Setting up Phusion Passenger on my slice

As my slice is running low on memory, running multiply mongrel processes really isn't an option any more(I am too cheap to pay for more memory, in these trying economic times). Phusion passenger... more
Posted by Toby on Jan 05, 09
About programming, rails, deployment and passenger

Turbogears and ReML

I followed the Turbogears 20 minute tutorial here. The first impressions of Turbogears are:It's a bit more verbose than rails: there's more plumbing - you have to explicitly define which view you... more
Posted by Toby on Mar 20, 08
About programming, rails, python, haml and turbogears

capistrano and deprec

I got slicehost recently to host osspinions, and started getting into using capistrano and deprec to deploy the app and set up the box. You can think of capistrano as a remote control enabled make,... more
Posted by Toby on Feb 26, 08
About programming, rails and deployment

Gigantic Rails Log File Slows Down App

My Wiki has been mysterious getting slower and slow and I didn't have a clue why. Today I happened to check the log file's size, it was over 10m. So I removed it and the Wiki was back to normal.... more
Posted by Toby on Feb 21, 08
About programming and rails

Changing the rendering for displaying exceptions

I just added autofresh support for the stacktrace pages, now you get get the benefits of autofresh while you are refactoring your code, which can cause temporary breakage, for example. It was easy,... more
Posted by Toby on Jan 04, 08
About programming and rails

Autofresh

Out of frustration with the work I was doing, I decided to switch gears a tiny bit and work on this idea I had, and Autofresh was the result. I enjoyed this experiment, it did not take much to make... more
Posted by Toby on Jan 03, 08
About programming, rails and plugin