When you use will_paginage to paginate a scope, and you want to obtain the total number of records matched...
Fixes all Flash elements on a page so that they heed DOM stacking order
This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...
For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...
If you need to revert only parts of one or several commits the following workflow can help:
git diff commit_hash -- path/to/file Provide any commit hashes or branch names like "master" for commit_hash.
Given this class: class Foo class Bar end end If you want to clean up this code with the modularity...
You will need to upgrade to RSpec >= 2 and rspec-rails >= 2 for Rails 3. Here are some hints to...
I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...
The ancestry gem allows you to easily use tree structures in your Rails application. There is one somewhat unobvious pitfall...
Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:
When you do tags with acts-as-taggable-on and want to preload associated tags, you can do so with...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
Hooks lets you define hooks declaratively in your ruby class. You can add callbacks to your hook, which will be...
Even when you're using bundler, it might be significant in which order your gems are listed in your Gemfile...
Ruby gem that provides an AR-style interface for the Pivotal Tracker API.
If you need to call a state_machine event and do not want to re-define resource_controller's create...
These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
Cucumber step argument transforms can be a powerful way to make your steps more flexible. Note however that if your...
You can use record.send(:update_without_callbacks) or record.send(:create_without_callbacks) This can be used as a...
You don't need a Rails application to use Sass. Even when you're working on a static site you...
It’s pretty common for projects hosted on GitHub to receive “pull requests”: requests from people who have cloned your...
When using virtual attributes, the attached trait can be useful to automatically copy errors from one attribute to another.