This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...
If you manipulate the DOM with JavaScript and your page contains nested elements with position: relative, chances are Internet Explorer...
Recent versions of the Faker gem retrieve their strings from your locale file (e.g. config/locale/de.yml). This leads to awesome errors...
Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...
Wrapping a string in this class gives you a prettier way to test for equality.
This is an awful way to test whether a number is shown on the screen: Then I should see "5...
Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...
Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...
passenger-install-apache2-module --auto
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
Before installing chef, make sure curl is installed and sudo finds your gems setup chef-client: follow this guide
Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...
You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...
If you want to play music or sounds from a browser, your choice is to use either Flash or the...
Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.
Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...
Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\ To ignore additional classes...
Sass now comes with user-defined functions, keyword arguments, list manipulation. Haml and Sass are now two separate gems.
If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...
The Edge Rider gem will define a method collect_ids on your ActiveRecord models, scopes, integer scalars and collections, which...