makandra dev

Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

stackoverflow.com

Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...

Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...

objectmentor.com

Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?

If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...

37signals.com

How to call routes, make requests and try out helpers from the Rails console.

This is for you when you want to mount a dmcrypt encrypted partition manually, e.g. from a live CD.

I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled: *** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such...

makandra dev
github.com

A small library to provide the Rails I18n translations in Javascript clients.

An association defined with has_many :through will return the same record multiple times if multiple join models for the...

After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...

weblog.jamisbuck.org

How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...

This card needs to be updated for Rails 3+. Since there is no --debugger flag you need to run:

You won't usually have to do this. It's OK to route all formats to a controller, and let...

stackoverflow.com

This will give you the string that appears most often in an array: names = %w[ foo foo bar bar bar...

When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...

slate.com

Nice article to educate your non-geek girlfriend/boyfriend about the joys of programming.

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...

Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline

Your current ruby must be Ruby Enterprise. gem install passenger passenger-install-apache2-module Edit your httpd.conf according to the...

This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...

Let's say you need to revert a migration that happened a while back. You'd create a new migration...

When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...