...fills in the query "foo" Also see An auto-mapper for ARIA labels and BEM classes in Cucumber selectors

When you do a bitwise copy using the dd tool you will not see any output until it completes or...

For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists

If you update Selenium regularly, you'll run into deprecation warnings similar to: WARN Selenium [:clear_local_storage] [DEPRECATION] clear...

...optional on association declarations with a symbol, lambda or proc. Explanation Association declarations like belongs_to support the option optional. This option does not support symbols, lambdas or procs. If...

...the presence of the associated object won't be validated. Example Bad class Note belongs_to :owner, optional: :draft? end note = Note.new(state: 'created', owner: nil) note.valid? # => true Good

RSpec lets you define the arguments with which you expect a method to be invoked: subject.should_receive(:say).with('hello...

When your Rails application is using Redis as its cache store, this is how you can list existing keys:

Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...

Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...

...its mount path. It starts with /media/. Open a terminal and sudo su to become root. We require root for everything. Use dd to create an image of your encrypted...

makandra dev

...which point the exception was thrown. def self.search_solr_with_exception_handling(*types, &block) begin search_solr_without_exception_handling(*types, &block) rescue Errno::ECONNREFUSED, Timeout::Error => e message = "Verbindung...

...many :taggings, dependent: :destroy + has_many :posts, through: :taggings +end app/models/tagging.rb +class Tagging < ApplicationRecord + belongs_to :post + belongs_to :tag + + validates :post, uniqueness: { scope: :tag } +end app/controllers/posts_controller.rb def post_params...

...many :taggings, dependent: :destroy + has_many :posts, through: :taggings +end app/models/tagging.rb +class Tagging < ApplicationRecord + belongs_to :post + belongs_to :tag + + validates :post, uniqueness: { scope: :tag } +end app/controllers/posts_controller.rb def new

...by doing date on the shell. E.g. our main application servers are running on Berlin (CEST) time, but this will differ on other machines. Rails also assumes that datetime fields...

...Rails 2, open config/environment.rb and comment or remove the config.time_zone line: # config.time_zone = 'Berlin' In order to disable time zone conversion in Rails 3 or newer, open config/application.rb and...

It's quite confusing how many external displays are usable with a MacBook that uses an M1 or M2 Chip...

Sometimes you might need to do some task in GitLab which would be tedious if you'd have to do...

You can unpack a .tar.gz file into the current directory like this: tar -xzvf archive.tar.gz The options used are

makandra dev
web.archive.org

When testing your command line application with Aruba, you might need to stub out other binaries you don't want...

...applications is to make the observe frequency low enough that out-of-order responses become unlikely enough. Try to poll the query field for changes every 0.75 seconds or longer...

Reacting on a class getting added can be done with a mutation observer. Example: const items = document.querySelectorAll('.item') const expectedClass...

If a Cucumber run deletes your application directory, an integration fail between Capybara and Capybara Screenshot may be the cause...

...HTML elements can automatically start playing when the autoplay attribute is set on them. Except for when they can not...

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

track down warnings and to see failing specs immediately or to get an overview of the core...