View
Posted almost 2 years ago by Henning Koch.

Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

Posted 6 days ago by Dominik Schöler.

# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...

Posted 20 days ago by Henning Koch.

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

Posted 3 months ago by Dominik Schöler.

Test Driven Development is the paradigm to "first write a test, then implement the code". This guide shows how to...

Posted 12 days ago by Florian Leinsinger. select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

Posted over 9 years ago by Henning Koch.

You cannot use Array#join on an array of strings where some strings are html_safe and others are not...

Posted 21 days ago by Emanuel De. makandracards.com

Added the updated part for Rails > 3, which suggests the use of ActionView's safe_join method.

Posted almost 8 years ago by minh.

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

Posted almost 7 years ago by Henning Koch.

Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce...

Posted about 2 years ago by Dominik Schöler. guides.rubyonrails.org

TL;DR Append your locale keys with _html to have them marked as html_safe. When you're localizing a...

Posted over 2 years ago by Henning Koch.

By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...

Posted over 4 years ago by Dominik Schöler. github.com

Since images are magnitudes larger in file size than text (HTML, CSS, Javascript) is, loading the images of a large...

Posted almost 9 years ago by Henning Koch.

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

Posted over 5 years ago by Henning Koch.

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Posted almost 3 years ago by Henning Koch.

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

Posted about 3 years ago by Judith Roth. github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

Posted 3 months ago by Henning Koch.

When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

Posted 3 months ago by Tobias Kraze.

Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:

This website uses cookies to improve usability and analyze traffic.
Accept or learn more