Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...

makandra dev

...a strategy to manually enable certain origins to interchange data. Because CSRF exploits browser behavior, its mitigation CORS is also implemented by browsers. CORS procedure The CORS workflow is basically...

rspec.info

Note Don't use reruns as a mean to work around flaky tests. You should always try to fix those...

api.rubyonrails.org

Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...

tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...

Insomnia is a GUI tool to help you communicating with an API. There are also other tools to do this...

All direct child directories of app are automatically added to the eager- and autoload paths. They do NOT create a...

makandra dev

...to the original file Versions are generated based on the processed original file Callbacks (before/after) are applied to original file and each version by itself Under the hood, a version...

In the following example the method update_offices_people_count won't be called when office_id changes, because it...

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...

...like keeping some HTML. If you only care about line breaks, you might be better off using a small, specialized helper method: def format_linebreaks(text) safe_text = h(text...

When using virtual attributes, the attached trait can be useful to automatically copy errors from one attribute to another.

In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels jobs that have...

...the joins, and then authors for the pluck clause. The first corresponds to the belongs_to relationship, and the latter is the name of the db table. You could even...

Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...

First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...

makandra dev
developers.google.com

Chrome has a built-in utility to check performance and accessibility (and more) of your web app: Lighthouse.

rspec.info

You can define methods in any example group using Ruby's def keyword or define_method method: describe "example" do...

Ruby lets you re-use existing RegExp objects by interpolating it into new patterns: locales_pattern = /de|en|fr|es/i...

edgeapi.rubyonrails.org

...you can use a special form options helper called #collection_check_boxes. It behaves similar to #collection_select, but instead of a single select field it renders a checkbox and...

We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...

makandra dev

Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...

makandra dev

...Powerless but nothing was raised No power to ['creatable_cards'] The reason for this behavior is that the Capybara test server is running in another thread, and the RSpec thread...

makandra dev
iamvdo.me

...line-height is font-size relative, but the problem is that font-size: 100px behaves differently across font-families, so is line-height always the same or different? Is it...