From ac1ffaa76598efaf0f8e552a6f0712ef99d19066 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 2 Jul 2024 10:56:28 +0200 Subject: [PATCH] Add a tip for macOS usage --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 66bfc93..271eee1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You need to have Docker installed on your machine. You can find instructions on ## Installation -Go to the [latest release](https://github.com/rails/rails-new/releases/latest) and download the executable for your platform (not the source code). For example, on M1 MacOS this would be `rails-new-aarch64-apple-darwin.tar.gz`. Once the download is complete, unzip the `.tar.gz` file, which will create the `rails-new` executable. Move the executable into your path so that it is ready to run from the command line. +Go to the [latest release](https://github.com/rails/rails-new/releases/latest) and download the executable for your platform (not the source code). For example, on M1 macOS this would be `rails-new-aarch64-apple-darwin.tar.gz`. Once the download is complete, unzip the `.tar.gz` file, which will create the `rails-new` executable. Move the executable into your path so that it is ready to run from the command line. ## Usage @@ -25,4 +25,10 @@ Or with options: rails-new myapp --main ``` +The first time you attempt to use the executable in macOS you may see a message like this: + +> "rails-new" can’t be opened because Apple cannot check it for malicious software + +In that case, please go to System Settings → Privacy & Security. You'll see a section mentioning "rails-new" with a button labeled "Allow Anyway" that you have to click. + The list of available options is found in the [Rails guides](https://guides.rubyonrails.org/command_line.html#rails-new).