Select Page
Using Foreman with Upstart & Capistrano

Using Foreman with Upstart & Capistrano

Foreman is a great tool for running multiple processes along side your rails project. Processes like Redis, Sidekiq, Faye or any other process that doesn’t run within Rails itself. Foreman runs in your development environment as well as your...

User does not respond to ‘devise’ method

I’ve recently went back to an old project and it seems to have stopped working giving me this error: ~/projectx/vendor/ruby/1.9.1/gems/devise-2.0.0/lib/devise/rails/routes.rb:391:in `raise_no_devise_method_error!': User does not respond to 'devise' method. This...

RVM install ruby-1.8.7-p330 fails

Today I’m thinking of getting back into so good old work and I read there is a new patch to Ruby, version p330. So I figure that RVM (Ruby Version Manager) being so easy and quick to update, I’d do the good old “rvm get head, rvm reload, rvm update...
Stripping ASCII colour from a ruby string

Stripping ASCII colour from a ruby string

I spent a few good hours trying to figure out how to strip a coloured ruby string: which comes out as this: >> p t"2 scenarios (e[33m2 undefinede[0m), 7 steps (e[36m2 skippede[0m, e[33m3 undefinede[0m, e[32m2 passede[0m)"=> nil Now I tried to gsub the string...

Error with fsevent and autospec (on Mac)

Today I’ve upgraded my gems and noticed that when running my autospec I get an odd error: [01:09:25 /usr/local/lib/ruby/gems/1.8/gems/ruby-ole-1.2.10/lib/ole/storage/base.rb:146:load] WARN   root name was “R” And my autospec would keep printing out:...