From 2a13a8aeebc91b11bcdc89705670b074062c2433 Mon Sep 17 00:00:00 2001 From: Louis Antonopoulos Date: Tue, 8 Oct 2024 17:25:14 +0100 Subject: [PATCH] Update markdown in web_generator.rb Add --suspenders_main parameter example Use double \ for line breaks Co-authored-by: Steve Polito --- .../suspenders/install/web_generator.rb | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/generators/suspenders/install/web_generator.rb b/lib/generators/suspenders/install/web_generator.rb index add19170..80f3935d 100644 --- a/lib/generators/suspenders/install/web_generator.rb +++ b/lib/generators/suspenders/install/web_generator.rb @@ -13,11 +13,24 @@ class WebGenerator < Rails::Generators::Base This generatator is intended to be invoked as part of an [application template][]. + #### Use the latest suspenders release: + ``` - rails new \ + rails new \\ --skip-rubocop \\ - --skip-test \ - -d=postgresql \ + --skip-test \\ + -d=postgresql \\ + -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb + ``` + + #### OR use the current (possibly unreleased) `main` branch of suspenders: + + ``` + rails new app_name \\ + --suspenders_main \\ + --skip_rubocop \\ + --skip-test \\ + -d=postgresql \\ -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb ```