Can I Email: Check what styling email clients support

Posted Over 4 years ago by Dominik Schöler.
caniemail.com

The french Tilt Studio built a caniuse clone for email clients. Note that while checking styling support helps using (or...

ActiveSupport includes Timecop-like helpers

Posted Over 4 years ago by Arne Hartherz.
api.rubyonrails.org

ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To travel a relative amount of...

Rails: Verify the CSRF token

Posted Over 4 years ago by Emanuel.

Rails uses a CSRF token in forms and AJAX requests to verify a user request. Internally it compares the injected...

A collection of useful design resources for developers

Posted Over 4 years ago by Emanuel.

This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.

Checking database size by row count

Posted Over 4 years ago by Dominik Schöler.

As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...

Rails: Invoking a view helper from the console

Posted Over 4 years ago by Dominik Schöler.

There are a few ways to access view helpers from the Rails console. The easiest way is the helper shortcut...

Rails routing: Using constraints to avoid "Missing template" errors

Posted Over 4 years ago.

You can use constraints in your routes.rb to avoid getting errors when wrong routes are called. Instead, the user will...

Controlling how your website appears on social media feeds

Posted Over 4 years ago by Henning Koch.

When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...

Unpoly: Automatically show the full better_errors page when Rails raises an error

Posted Almost 5 years ago by Henning Koch.

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

How to inspect the HTML of an email in Thunderbird

Posted Almost 5 years ago by Dominik Schöler.
superuser.com

Inspecting the source of an email does not always reveal the plain HTML source, but some encoded byte mess. In...

Jasmine: using async/await to write nice asynchronous specs

Posted Almost 5 years ago by Tobias Kraze.

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

Adding Jasmine JavaScript specs to a Webpack(er) project

Posted Almost 5 years ago by Tobias Kraze.

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

ActiveType 1.2 supports "change_association"

Posted Almost 5 years ago by Tobias Kraze.

With ActiveType 1.2 you can modify associations (has_many etc.) after they have been defined. One common use case for...

How to recognize CVE-2019-5418

Posted Almost 5 years ago.

If you get requests with values for formats like this: {:locale=>[:de], :formats=>["../../../../../../../../../../etc/services{{"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby...

Heads up: Capybara 3's text matchers no longer squish whitespace by default

Posted Almost 5 years ago by Michael Leimstädtner.

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Webpack: Automatically generating an icon font from .svg files

Posted Almost 5 years ago by Tobias Kraze.

Over the years we have tried several solution to have vector icons in our applications. There are many ways to...

Capybara: Testing file downloads

Posted Almost 5 years ago by Emanuel.

Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...

SameSite cookies

Posted Almost 5 years ago by Dominik Schöler.

TL;DR Most web applications do not require action on this. SameSite=None (old browser default) will continue to work...

Self-expiring URLs with Apache

Posted Almost 5 years ago by Tobias Kraze.

When delivering non-public uploaded files (images, documents etc), one has to decide whether and how to do authorization. The...

Migration from the Asset Pipeline to Webpacker

Posted About 5 years ago by Emanuel.

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

ActionMailer: Previewing mails directly in your email client

Posted About 5 years ago by Michael Leimstädtner.

In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',

HTML emails with inline stylesheets and webpacker

Posted About 5 years ago by Natalie Zeumann.

Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...

Using local fonts with Webpack / Webpacker

Posted About 5 years ago by Jakob Scholz.

When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...

Rails: Passing array values to tag helpers like link_to

Posted About 5 years ago by Dominik Schöler.

From at least Rails 4, the ActionView tag helper turns Array values of HTML options into a single space-separated...