makandra dev
twitter.github.com

Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons

assignable_values now lets you define a secondary default that is only used if the primary default value is not...

The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...

In a nutshell: Use git rebase --onto target-branch source-commit target-branch means "branch you want to be based...

Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...

makandra dev
github.com

The asset pipeline from Rails 3.1 packported to 2.3. By Michael Grosser from parallel_tests fame.

You can say this in helpers like link_to and content_tag: = link_to 'Label', root_url, :data => { :foo => 'bar...

heartbeat.skype.com

There was a bug in Skype that could cause messages to be sent to incorrect recipients (anyone, not only people...

In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:

webupd8.org

Also works on Gnome 2 Much prettier than Skype notifications Better visibility

In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...

CSS is a lot easier to write and read than clumsy XPath expressions. So when you need to use XPath...

Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...

Recent rails security updates have shown that people make incorrect assumptions about the possible contents of the params hash.

makandra dev

Last week saw a security issue with rails 2.3 that required a fix. While an official patch was provided, the...

Why string sorting sucks in vanilla Ruby Ruby's sort method doesn't work as expected with special characters (like...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

stackoverflow.com

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

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...

When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G – the latter gives...

stackoverflow.com

Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...

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