Skip to content

Commit 80594f4

Browse files
railsrc: Add application template
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
1 parent 681553f commit 80594f4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,18 @@ configuration:
216216

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

219-
- Adds [railsrc][] with `--database=postgresql`. If you need to use another
220-
database, you can override this value like so: `rails new my_app --database=mysql` or
221-
`rails new my_app --no_rc`
219+
- Adds [railsrc][] with the following options to integrate with [Suspenders][].
220+
221+
```
222+
--database=postgresql
223+
--skip-test
224+
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
225+
```
226+
227+
If you want to skip this file altogether, run `rails new my_app --no_rc`.
222228

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

225232
Shell aliases and scripts:
226233

railsrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--database=postgresql
22
--skip-test
3+
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb

0 commit comments

Comments
 (0)