Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...
There are several options, but most of them are impractical. The best way is to use the :ruby filter:
If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...
By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...
If you want to distribute a 's width equally over its columns, you can use the following CSS property:
Clearfix is a hack to clear floating elements without additional HTML markup. If you only need to support IE8 and...
While 2.0 will include a number of syntax changes, new features and general improvements, mentioned below, it is anticipated to...
If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...
The most common use case for Ruby's #collect is to call a method on each list element and collect...
Since version 11.10 Opera provides support for linear gradients using -o-linear-gradient. The syntax is pretty similar to Mozilla...
Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...
The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...
You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...
If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...
Good guide to different ways you can write CSS selectors that select elements by their attribute values.
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/?
Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...
Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...
The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...
When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...
When you need to use diff in either some Ruby code or your Rails app, use the differ gem.
Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...