Archive for June, 2007

Stubbing the referer method onto TestRequest

« 28 June 2007 | 18:32 | rubyonrails, testing | No Comments »

I have a before_filter that relies on request.referer to set an instance variable (@cancel_link) for use in the views. When trying to test that the instance variable was assigned in my functional tests, I realized that TestRequest doesn’t have the #referer method like CgiRequest does.
fizx on #rubyonrails got me heading in the right direction with […]



Rename Microformats??

« 28 June 2007 | 9:03 | microformats | No Comments »

There is a big thread running on microformats-discuss right now about whether or not to rename microformats or give it a secondary name that will make it easier for the ‘normal person’ to understand.
Having given the issue very little critical thought and not even having read the entire thread, I will nonetheless opine into the […]



MySQL gem linking error

« 6 June 2007 | 10:07 | gems, rubyonrails | No Comments »

After doing a fresh install of my whole development stack I encountered the following error when trying to use anything that accessed the db:
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Reason: image not found
I found helpful info here and here.
The only thing I had to do differently was alter the path to mysql.bundle to […]