In January this year (2010), Gmail switched to using HTTPS for everything by default. Previously it had been introduced as...
The following Sass will do the trick: button, input[type="reset"], input[type="button"], input[type="submit"], input[type="file...
Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.
When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests...
The step definitions below allow you to write this in both Webrat and Capybara: When I follow "Download as PDF...
If you need to find out which of your local commits are not on the remote server do this:
In regular expressions you can use the zero-width pattern \b to match the beginning or end of a word...
You configured authentication in your Apache configuration that requires username and password but you want a single IP address, host...
In RSpec 2 shared_examples_for can have parameters. You can simply hand over arguments from it_behaves...
When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Learning Rails for the first time should be fun, and Rails for Zombies allows you to get your feet wet...
Styling button tags across all major browsers is not easy. Many times you should be fine by using the native...
So you added a new callback to your model that (e.g.) caches some data when it is saved. Now you...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
How to create an infinitely nestable hash that always defaults to a new hash if a key does not map...
Ruby's net/http is setup to never verify SSL certificates by default. Most ruby libraries do the same. That means...
You can use these step definitions: Then /^I should not see an error$/ do (200 .. 399).should include(page.status_code...
When you eagerly load an association list using the .include option, and at the same time have a .where on...
If you want to find out whether a Class object is directly inheriting from another class, use superclass: ActiveRecord::RecordNotFound.super...
RSpec 1, RSpec 2 To test whether two arrays have the same elements regardless of order, RSpec 1 and 2...
Deadlocks only occur if two transactions in separate threads compete for the same rows in the database. They usually (but...
Lets say you need to make a change to a commit OLD_COMMIT, but this is not the most recent...
You can get YAML.load to instantiate any Ruby object by embedding the desired class name into the YAML code. E.g...
If your controller spec never reaches your controller code: Make sure you are signed in. Make sure you are actually...