Quick Tip: Rails 2.1 Time Zones
My last quick tip involved setting your time zone in Ubuntu Hardy, so now, how do you set your time zone in a Ruby on Rails application? Rails 2.1 makes it much easier to manage time zone settings than...
View ArticleMonitoring Thin using God, with Google Apps Notifications
We’ve been using God to monitor our Thin processes on Freebootr and set it up to notify us through our Google Apps account. Thought our God config file might be useful to anyone trying to use God with...
View ArticleQuick Tip: Override Rails Generated URLs
By default Ruby on Rails resources use the controller name for the URL. For example: map.resources :time_entries would yield the following URLs What if you want them to be something else entirely? I...
View ArticleUsing Named Scopes in a Rails Plugin
After extracting some common functionality into a Rails plugin, I was quite pleased with the result. The code was now contained and could be used within a model with a single line. Awesome! Except, a...
View ArticleFixing Multipart Uploads in Rack for Ruby 1.9
There is a slight problem in Rack 1.0.0 that causes a fatal error to be produced when uploading files Here's what you do to patch Rack: You should now be back in business. Hopefully it won't be too...
View ArticleQuick Tip: Rails Singularization of -ess
Have you ever created a Ruby on Rails application dealing with businesses or addresses? I’d be hard pressed to find someone who hasn’t. Strangely, though, Rails does not have an inflection that deals...
View ArticleQuick Tip: Cucumber Works-in-Progress
After upgrading to the latest gems, including cucumber and webrat, I noticed a deprecation message when trying to run rake features. There are new rake tasks now for running cucumber features: So now,...
View ArticleQuick Tip: Rails Named Bind Variables
Have you ever come across a Ruby on Rails query that has so many conditions that it’s hard to figure out what is being replaced where? While this can be somewhat mitigated by using Rails named scopes,...
View ArticleHoneypot Captchas for Rails
A while ago, I read a few articles on the technique of honeypot captchas and thought it was a pretty simple, but interesting, technique. Essentially, with honeypot captchas you add fields into public...
View ArticleArizona’s First Ruby Conference – SunnyConf 2010
It started as an impromptu chat about getting more Ruby sessions into events like Desert Code Camp. A small group of rubyists met in the courtyard of DeVry University after the lunch break and kicked...
View Article
More Pages to Explore .....