Skip to content

Commit 27e8d80

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 27e8d80

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,20 @@ 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 need to use another database, you can override this value like so: `rails new my_app --database=mysql`.
228+
229+
If you want to skip this file altogether, run `rails new my_app --no_rc`.
222230

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

225234
Shell aliases and scripts:
226235

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)