x = "Universe" <<-'MESSAGE' Hello #{x} MESSAGE # => "Hello #{x}" That will make the string behave like a single-quoted string, so sequences like \n will be used as they are...
Instead of showing you two lines for each change, Git allows you to highlight changes in a line explicitly:
...thing to do with any new U2410 should be to disable the incredibly annoying beep when pressing any monitor button. Here is the fastest way to achieve that:
...Sound”; the “Power Save Audio” entry is usually grayed out, so this is 1 beep less than from above.) Right Down Tick Do it this way or your colleagues will...
We had the issue, that a VCR spec failed, after updating CarrierWave from version 0.11.0 to 1.3.2. In this version...
There is a bug in ActiveRecord 2.3.x that leads to changes in nested forms getting lost. class Project < ActiveRecord...
6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...
As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.
Table Of Contents Flexbox wrapping Spacing Long content Prevent an image from being stretched or compressed Lock scroll chaining
It sometimes happen that a database dump, that would want to insert into your development database, does not match the...
You can group contacts using a mailing list in Thunderbird for easier access and less trouble when trying to find...
In rare cases you might need something like form_for (for using form builder methods on the resulting block element...
This step tests whether a given select option comes preselected in the HTML. There is another step to test that...
tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...
Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...
By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2
A while ago we were working on an application that had an entire version specially created for mobiles, such as...
Basic box shadow support is available in all browsers today, but you need to check to which extend they are...
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
...filters to what is visible through an element. touch-action (IE11+): Limiting default touch behavior (like scrolling) background-blend-mode (Edge 79+): Mixing background color and image Scroll snapping (Edge...
...continue a scroll movement until it reaches the edge of a child element. overscroll-behavior (no Safari): Prevent scroll chaining
Given the problem you have a new column postion and that column should be updated for all existing rows with...
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...