Archive for August, 2009

Making ActionController::Translation#translate more like ActionView::Helpers::TranslationHelper#translate

I started using i18n support in rails. I really liked how the ActionView::Helpers::TranslationHelper#translate method works.
If the key starts with “.”, then the key is scoped to the partial. For example, if translate(”.title”) is called from the registrations/new page, then the key gets scoped to ‘registrations.new.title’. I wanted the same sort [...]

Tags: ,

Running RSpec Through Textmate with Multiruby

When working with RSpec, I like to run my individual specs with the RSpec Textmate Bundle. After making the switch to using multiruby, the bundle was picking up my old install of ruby. This was easy to fix, at least to run my current 1.8.7 version of ruby from my .multiruby directory.
On my [...]

Tags: ,

ZenTest multiruby fails on setup

I hope this helps someone else. I decided that I need to get setup with Ruby 1.9, and I found this nice write up.
However, when I typed:
multiruby_setup the_usual
I kept receiving the following error, in my ~/.multiruby/build/ruby-1.8.6-p383/log.build (your directory may vary depending on the patch level for ruby 1.8.6):
readline.c: In function ‘filename_completion_proc_call’
This post [...]

going /usr/local

I’ve been living a double life with my Mac OS X development environment, the MacPorts life and the /usr/local life.
Why I used MacPorts?

It’s easy, just type sudo port install packagename

However, I kept running into more and more situations where MacPorts didn’t really work for me.

MacPorts seemed to always be behind in [...]

Tags: ,