From b15836a14c3c08c88b97a8ca359387c74d7eb554 Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 10 May 2024 13:40:40 -0400 Subject: [PATCH] Promote dotfiles and railsrc Now that we no longer have a `suspenders` executable, we need to call `rails new` with several options. This commit documents how to use a `railsrc` file (or our dotfiles) to simplify the process. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ffc4a033..34d89fbd 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,21 @@ rails new app_name \ Then run `bin/setup` within the newly generated application. +Alternatively, if you're using our [dotfiles][], then you can just run `rails new +app_name`, or create your own [railsrc][] file with the following configuration: + +``` +--database=postgresql +--skip-test +-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb +``` + [application template]: https://guides.rubyonrails.org/rails_application_templates.html [default test framework]: https://guides.rubyonrails.org/testing.html [RSpec]: http://rspec.info [prefer PostgreSQL]: https://github.com/thoughtbot/dotfiles/pull/728 +[dotfiles]: https://github.com/thoughtbot/dotfiles +[railsrc]: https://github.com/rails/rails/blob/7f7f9df8641e35a076fe26bd097f6a1b22cb4e2d/railties/lib/rails/generators/rails/app/USAGE#L5C1-L7 ### With Existing Rails Applications