When HTTP clients make an request they can define which response formats they can process. They do it by adding...

Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

This works well in the simplified case, when your link disappears after it was clicked. Let link_to_remote behave...

So you want to find out how many horizontal pixels you have available on a mobile device. This is super...

makandra dev
css-tricks.com

Examples how to create dozens of shapes using pure CSS and a single HTML element.

makandra dev

Basic error pages To add a few basic styles to the default error pages in Rails, just edit the default...

If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...

github.com

As the title says: this jQuery plugin creates bar charts from HTML tables. It comes in some different flavors.

The classical scenario: There's a parent div element and you want to center some arbitrary child element vertically inside...

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...

If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...

Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:

There is no reason to leave trailing whitespace characters in your project's files, so don't add any.

simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...

The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...

rubyforge.org

Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...

makandra dev
github.com

pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks...

Jedes nicht rein private Profil auf Social Media Portalen muss ein Impressum haben, das heißt insbesondere Unternehmen und Freiberufler (§ 5...