makandra dev

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

Sometimes you want to fetch associations for an ActiveRecord that you already loaded, e.g. when it has deeply nested associations...

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

When you roll custom URLs with hacks like routing-filter, you can put a spec like this into spec/routing/routing_spec.rb:

github.com

the best damn presentation software a developer could ever love

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

github.com

jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end

popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

The Git stash does not work like a one-slot clipboard and you might shoot yourself in the foot if...

Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...

github.com

Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...

This is called "cherry-picking". git cherry-pick commit-sha1 Note that since branches are nothing but commit pointers, cherry...

To delete a local branch git branch -d the_local_branch To remove a remote branch (if you know what...

stackoverflow.com

Reverting a commit means creating a new commit that undoes the old changes. Imagine the following commit history:

github.com

Try our Apify gem which solves many problems you will be having.

github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

github.com

PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...

github.com

home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...

github.com

A fake filesystem. Use it in your tests.

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...

To retain all branches you can try the svn2git tool. However, this tool has some bugs. To only import the...

Create a branch: svn copy https://dev.makandra.de/svn/filepanic/trunk https://dev.makandra.de/svn/filepanic/branches/$ticketnumber_shortdesc Don't just copy the folder into your working...

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some do not. The cleanest way to have consistent...

Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...