Removing features and merging those changes back can be painful. Here is how it worked for me.\

blog.bitcrowd.net

To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...

jQuery UI's date picker and date time picker doesn't work on touch interfaces. Solution 1: Use Mobiscroll

After my update from MacOS X 10.6 Snow Leopard to 10.7 Lion the search function in Apple Mail stopped working...

makandracards.com

Our rcov:all task for aggregated RSpec/Cucumber coverage was overhauled extensively. Among other things it now works for Rails 2...

Association named 'variations' was not found; perhaps you misspelled it? I just was hunting down a strange error with this...

apidock.com

[1,2,3,4].sample # => e.g. 4 If you'd like to cheat and give different weights to each element...

apidock.com

Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...

makandra dev

You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...

Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...

Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...

RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...

To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...

linux.die.net

You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...

stackoverflow.com

The solution in this card is based on a stack overflow post by Leventix. If you need to make request...

The most common use case for Ruby's #collect is to call a method on each list element and collect...

Calling #gsub on a string that was previously marked as #html_safe will lead to unexpected behavior. E. g. backreferences...

web.archive.org

Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...

In order to open a MySQL shell without the need to enter user and password, you can say the following...

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

Sometimes you want to use a vanilla Ruby method like a block. You can use Object#method to obtain a...

Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...

When you don't know which options are available, but need to have an option selected, use this step.