Skip to content

Commit

Permalink
Promote dotfiles and railsrc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stevepolitodesign committed May 10, 2024
1 parent 825d94d commit b15836a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b15836a

Please sign in to comment.