If in your application your users pass along params that result in filenames, like invoices/generated?number=123. This could be...
The speed searching for makandra notes in Firefox can be improved by following these steps: Download the Firefox-Add-on...
Around the time in my life when I stopped ordering drinks made with more than one ingredient, I was woken...
RubyGems 1.6.0 has undergone some changes which may cause Rails 2.x applications to break with an error like this...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...
If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...
Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...
Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.
In order to bring up a textual description of a Capistrano task you can say cap -e taskname ... where taskname...
This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...
If you run specs or your application and get an error like: ActionController::MissingFile in 'ProductsController#show, should render PDF...
When defining a trait using the Modularity gem, you must take extra steps to define constants to avoid caveats (like...
Find-as-you-type boxes are usually built by observing changes in a text field, and querying the server via...
If you want to iterate over a Range, but only look at every n-th element, use the step method...
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:
While you can use Capybara matchers like have_css and have_content for expectations, they are not too helpful for...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
RSpec 1, RSpec 2 To test whether two arrays have the same elements regardless of order, RSpec 1 and 2...
Gallery of fonts you can use without much hassle in LaTeX. The license of the fonts vary, but are all...
When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...
When you just went through a long debug-fest and infested your code with dozens of debug messages, it can...
This step tests whether a given select option comes preselected in the HTML. There is another step to test that...