We're adding a script console-for to open a remote Rails console with one command. Also have a look...
When you open up a story to only have a look at it, close it by pressing the "Cancel" button...
The step definition below allows you to write: Then I should see a link labeled "Foo" But I should not...
If you are exchanging files with a client via Dropbox you do not need to access the Web page every...
A common question in IT departments is whether to provide a capability by building custom software or by buying a...
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
To test if you can connect to a host using password authentication and explicitly deny public key authentication:
Here is how to switch your Selenium to Chrome: Make sure you've got a recent version of chromedriver in...
If you stub a method or set expectations with should_receive these stubbed methods may also yield blocks. This is...
In order to rename your Ubuntu box, replace all occurences of the the old name in the following two files...
If you want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...
In shell scripts you can use $1 to refer to the first argument, $2 for the second, etc. If you...
Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...
This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...
To obtain a list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory...
If you need Google Chrome to run in English, and your system locale is a non-English one, you have...
When some of your Google contacts are no longer synchronized with your e-mail client or mobile phone, those contacts...
Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String
If you have to build a filename (e.g. for use in downloads) that contains user input, keep in mind that...
My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...
If you want to use a helper_method my_helper_method inside a model, you can write ApplicationController.helpers.my_helper...
When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...
Get "PuTTY Link" and "Pageant" (an SSH key agent) from the PuTTY download page. Run pageant.exe, find its icon inside...
Consider the following: describe '#something' do context 'with lots of required arguments' do it 'should work' do subject.something(:foo => 'foo...