If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...
Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...
Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...
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...
When used to do: $> cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R...
If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...
When your Cucumber feature seems to forget cookies / sessions when you run it with Selenium check if the test travels...
Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...
Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
When adding a new field to your model's database table, don't set any defaults in the database.
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
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...
You can use the step definition below to say this: Then the "Last name" field should have an error
When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...
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.
Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...
These methods are available to you: page.driver.browser.switch_to.alert.accept page.driver.browser.switch_to.alert.dismiss page.driver.browser.switch_to.alert.text # the confirmation text Spreewald gives you steps like these:
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
Do you have page caching enabled for the development environment and there are cached pages lying around in public/?
While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...
I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks