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

Normally, Rails handles encryption and signing of cookies, and you don't have to deal with the matter. Should you...

When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...

The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...

stackoverflow.com

Example (broken in IE): flex: 0 1 calc(50% - 20px) Workaround: flex-basis: calc(50% - 20px) flex-grow: 0 // Default...

gedd.ski

Within a Flexbox layout, there are multiple CSS attributes that may affect a child's basis (the initial width before...

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

Element finding is a central feature of Capybara. Since #find is normally used to get elements from the current page...

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

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...

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

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...

PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...

makandra dev

min-width is known as a CSS property that can be set to define a least width for an element...

When you have a powerful machine with many CPU cores, you might run into an error like

makandra dev

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

I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...

makandra dev

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

Puma allows you to specify the max and min threads. In development this could be useful if you use a...

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...

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle