superuser.com

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

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

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

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

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

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

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

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

makandra dev

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

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

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

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

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

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

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

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

Carrierwave includes some handy helper methods you can use to resize your images. Here is a quick summary of them...

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

Spammers have started abusing other application to send their spam. This works like this: The application has some form that...

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

makandra dev

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

codepen.io

Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...