I typically have the following code in my application_controller.rb file in Rails apps:
# any time we get a RecordNotFound Exception we're going to rescue from it and throw a 404
rescue_from ActiveRecord::RecordNotFound, :with => :throw_404
#...
August 16, 2009 | In: Linux
I've recently installed Kubuntu on my Acer Aspire One netbook. The Acer came with Windows XP, but I decided to dual-boot so I would be able to develop in Linux. Kubuntu is really nice, and the install was relatively painless. However, I'm still getting...
Sometimes you want to automatically insert copy into the body of your Wordpress post without having to manually paste it in every time. I ran across this handy function from wprecipes.com that does just that:
Edit your theme and paste the following...
Top 10 Tips for New Dads
My daughter is now 14 days old, and I've learned a lot over the past 2 weeks. I'd like to share my top 10 tips list with other fathers-to-be out there. Hopefully it will make your first days with your new child a bit less...
Recent Comments