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...
There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define
One option is to use partials. Or you can set the @template field to the name of another action:
Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...
When you create e.g. a sidebar box that contains headlines and paragraphs, the final paragraph's margin in that box...
When you need to add a event listener to hundreds of elements, this might slow down the browser. An alternative...
When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...
Don't use should validate_format_of(...) because that matcher works in weird ways. Use the allow_value matcher instead...
Use this if you want to show or hide part of a form if certain options are selected or boxes...
rjb is a bridge software. It connects Ruby and Java.
You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end
The following example is from the Cucumber wiki: Given a blog post named "Random" with Markdown body """ Some Title, Eh...
So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...
traits.js is a minimal, standards-compliant trait composition library for Javascript.
This is called "cherry-picking". git cherry-pick commit-sha1 Note that since branches are nothing but commit pointers, cherry...
YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...
Ruport’s acts_as_reportable module provides support for using ActiveRecord for data collection. You can use it to get...
An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...
String manipulation extensions for the Underscore.js javascript library.
home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...
A fake filesystem. Use it in your tests.
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...