A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...
In general, you should not put a block element inside an inline element. So don't do this: text
Exercise 1: XML On the start page of your Movie DB, show the title of a random movie that is...
Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...
This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...
TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...
We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
Improve geordi cucumber: Only attempt @solo run when the specified files contain the @solo tag, skip @solo run if any...
Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
So you downloaded a theme for Chrome a while ago and don't remember which one it is?
to create a Gallery that has a name and has_many :images, which in turn have a...
UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows
When building a form with a file select field, you may want to offer your users a live preview before...
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...
Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
When a method has keyword arguments, Ruby offers implicit conversion of a Hash argument into keyword arguments. This conversion is...
Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...
Many of our clients can't or don't want to design their user interfaces. In the absence of a...
Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...
Your MovieDB gained traction and is now a popular tool among cineasts. This comes with a downside: You noticed a...