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:

Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...

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...

RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...

ckeditor.com

Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...

Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...

blog.bitcrowd.net

Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...

You can use the step definition below to say this: Then the "Last name" field should have an error

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/?

I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...

If you have any class which requires access to some path methods generated by your routes. Even though you could...

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

You've been there: A form cannot be submitted, but you don't see a validation error because the field...

Sometimes the Rails helper #distance_of_time_in_words is using too much magic. When you need a time difference...

Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...

When the Ruby parser module of Ruby-GetText comes across a file in one of its search directories (e.g. lib/scripts...

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...