This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
When using Rails to truncate strings, you may end up with strings that are still too long for their container...
Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...
I have no idea how it's supposed to work (or why the don't have a print CSS), but...
Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...
When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer...
Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...
Scenario outlines allow us to more concisely express repetitive examples through the use of a template with placeholders.
When you use one line Ruby comments in ERB templates you should never do this (notice the whitespace in front...
Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup.
If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...
In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with...
By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...
Clearfix is a hack to clear floating elements without additional HTML markup. If you only need to support IE8 and...
You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
Do you have page caching enabled for the development environment and there are cached pages lying around in public/?