CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...
Edge (and some versions of Internet Explorer, like IE11) use to render a × clear input button on text fields. While...
Within a Flexbox layout, there are multiple CSS attributes that may affect a child's basis (the initial width before...
Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...
When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...
When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...
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...
Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...
When doing some meta-programming magic and you want to do something for all attributes of a class, you may...
In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',
Here is how to make Rome datepicker look like the rest of your Bootstrap 4 application. Rome comes with very...
RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...
For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...
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...
The rendered font often depends on the local font your system provides, therefore you often find a rule like below...
If your Rubymine does not recognize a file type correctly although you have entered the unmistakeable file extension like material_orders_controller.rb...
Mobile Chrome and Safari support the "web share API" which allow you to use the native share functionality of an...
In this example we assume that not only the storage gem changes but also the file structure on disc.
If you want to fill in textareas with multiple lines of text (containing line breaks / new lines) you can use...
Rails defines a #truncate helper as well as a method String#truncate. = truncate("my string", length: 5) = "my string".truncate...
The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...
Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...