Skip to content

Commit

Permalink
railsrc: Add application template
Browse files Browse the repository at this point in the history
Now that [Suspenders 3.0.0][] has [merged][], we can improve the
developer experience by placing all option into our `railsrc` file.

Once this commit it merged, we can link to our dotfiles from the
Suspenders README.

Also closes #746

[Suspenders 3.0.0]: https://github.com/thoughtbot/suspenders
[merged]: thoughtbot/suspenders#1135
  • Loading branch information
stevepolitodesign committed May 10, 2024
1 parent 681553f commit 27e8d80
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,20 @@ configuration:

[Rails](https://rubyonrails.org)

- Adds [railsrc][] with `--database=postgresql`. If you need to use another
database, you can override this value like so: `rails new my_app --database=mysql` or
`rails new my_app --no_rc`
- Adds [railsrc][] with the following options to integrate with [Suspenders][].

```
--database=postgresql
--skip-test
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
```

If you need to use another database, you can override this value like so: `rails new my_app --database=mysql`.

If you want to skip this file altogether, run `rails new my_app --no_rc`.

[railsrc]: https://github.com/rails/rails/blob/7f7f9df8641e35a076fe26bd097f6a1b22cb4e2d/railties/lib/rails/generators/rails/app/USAGE#L5C1-L7
[Suspenders]: https://github.com/thoughtbot/suspenders

Shell aliases and scripts:

Expand Down
1 change: 1 addition & 0 deletions railsrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--database=postgresql
--skip-test
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb

0 comments on commit 27e8d80

Please sign in to comment.