---
title: 'This week in #dev (Jul 7, 2023)'
teaser: 'Highlights of what happened in thoughtbot''s #dev channel on Slack this week.

  '
tags: this week in dev,rails,ruby,git,testing
author: thoughtbot
published_on: 2023-07-19
---

Welcome to another edition of This Week in #dev, a series of posts where we
bring some of the most interesting Slack conversations to the public.

## Sign Git Commits with SSH Keys

[Summer ☀️] has shared a link to a blog post explaining [how to sign Git commits
with SSH keys] instead of PGP keys.

[how to sign Git commits with SSH keys]: https://calebhearth.com/sign-git-with-ssh

## Learning Ruby Documentation from the Command Line

[Svenja Schäfer] has learned about [a new way to view ruby documentation from the
command line]: `ri`.

```sh
% ri Enumerable
```

[a new way to view ruby documentation from the command line]: https://ruby.github.io/rdoc/RI_rdoc.html

## Beware of `find_each` Ignoring Order Instructions

[Rémy][rémy hannequin] learned the hard way that [`find_each`] from Active Record
messes with the query method [`order`]. It uses [`find_in_batches`] under the hood,
which automatically sets the order to ascending on the primary key.

[`find_each`]: https://api.rubyonrails.org/classes/ActiveRecord/Batches.html#method-i-find_each
[`order`]: https://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-order
[`find_in_batches`]: https://api.rubyonrails.org/classes/ActiveRecord/Batches.html#method-i-find_in_batches

## Cloning a Project Wiki with Git

[Svenja][Svenja Schäfer] also learned how to clone the wiki of a project using the command:
just add `.wiki` to the end of the repository URL.

```sh
$ git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.wiki.git
```

## Flaky Tests: An Introduction

[Dimiter Petrov] sent a link to an [article about flaky tests]. The article
provides an introduction to the topic.

[article about flaky tests]: https://samsaffron.com/archive/2019/05/15/tests-that-sometimes-fail

## Thanks

This edition was brought to you by: [Dimiter Petrov], [Summer ☀️], [Svenja
Schäfer], and [Rémy Hannequin]. Thanks to all contributors! 🎉

[rémy hannequin]: https://thoughtbot.com/blog/authors/remy-hannequin
[Summer ☀️]: https://thoughtbot.com/blog/authors/summer
[Svenja Schäfer]: https://ruby.social/@slickepinne
[Dimiter Petrov]: https://ruby.social/@crackofdusk
