These two models can be used to access the posts and associated comments of a WordPress database.
To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend
Deadlocks only occur if two transactions in separate threads compete for the same rows in the database. They usually (but...
If your controller spec never reaches your controller code: Make sure you are signed in. Make sure you are actually...
Gallery of fonts you can use without much hassle in LaTeX. The license of the fonts vary, but are all...
The first thing you need to understand is that the purpose of refinements in Ruby 2.0 is to make monkey...
When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...
This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...
When you just went through a long debug-fest and infested your code with dozens of debug messages, it can...
Don't insert table rows in a Rails database migration. This will break tests that expect that database to be...
Occasionally some complex query must be processed on the database because building thousands of Ruby objects is impracticable.
In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara...
To change a commit message of the most recent (unpushed) commit, you can simply use git commit --amend -m 'new...
Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...
This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.
You should never transmit sensitive data without encryption. Being logged in somewhere constitutes transmitting sensitive data. For Pivotal Tracker:
This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...
When you use will_paginage to paginate a scope, and you want to obtain the total number of records matched...
For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...
You most likely never want to do this. But if you do: Model.update_all({:id => new_id}, {:id => old_id...
To only run the next two migrations: rake db:migrate STEP=2 To revert the previous two migrations:
If you need to revert only parts of one or several commits the following workflow can help:
To install webmock 1.5.0: sudo gem install webmock --version "=1.5.0" or sudo gem install webmock -v "=1.5.0"
As a user of Bundler you have spent significant time looking at this message: Fetching source index for http://rubygems.org...