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:
git diff commit_hash -- path/to/file Provide any commit hashes or branch names like "master" for commit_hash.
To install webmock 1.5.0: sudo gem install webmock --version "=1.5.0" or sudo gem install webmock -v "=1.5.0"
After switching to Rails 3 you may get a LoadError with the following message when trying to use your application...
I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...
If you previously used version 2.x of Thunderbird and upgraded to 3.x (for example through an Ubuntu release...
Hooks lets you define hooks declaratively in your ruby class. You can add callbacks to your hook, which will be...
Ruby gem that provides an AR-style interface for the Pivotal Tracker API.
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...
It’s pretty common for projects hosted on GitHub to receive “pull requests”: requests from people who have cloned your...
Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...
power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...
There are many different methods that allow mapping an Array to a Hash in Ruby. Array#to_h with a...
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
In modern Rails versions you can also use ActiveRecord's pluck method. User.active.pluck(:id) => [1, 5, 23, 42]
In july Google announced a new version of their image serach tool Google Images. But you won't find it...
delocalize provides localized date/time and number parsing functionality for Rails.
First of all: You could just use RVM which would make the pain go away. If for some reason you...
This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...
Capistrano task for Bundler.
Expiration of Rails sessions By default Rails sessions expire when the user closes her browser window. To change this edit...
Since RubyMine 3.1 you can drag tabs across panes/windows and out of the main window to create new windows.