You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix title capitalization in guides according to guidelines [ci skip]
According to the guide guidelines, all words except for prepositions,
conjunctions, internal articles, and forms of the verb "to be" should be
capitalized. This commit fixes some titles.
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1212,7 +1212,7 @@ Imagine you have a server which mirrors the production environment but is only u
1212
1212
That environment is no different than the default ones, start a server with `rails server -e staging`, a console with `rails console -e staging`, `Rails.env.staging?` works, etc.
1213
1213
1214
1214
1215
-
### Deploy to a subdirectory (relative URL root)
1215
+
### Deploy to a Subdirectory (relative URL root)
1216
1216
1217
1217
By default Rails expects that your application is running at the root
1218
1218
(e.g. `/`). This section explains how to run your application inside a directory.
The `-n` option allows you to run a single method instead of the whole file.
358
358
359
-
#### Running tests with a specific seed
359
+
#### Running Tests with a Specific Seed
360
360
361
361
Test execution is randomized with a randomization seed. If you are experiencing random
362
362
test failures you can more accurately reproduce a failing test scenario by specifically
@@ -609,7 +609,7 @@ the same way that you appreciate feedback on your patches.
609
609
610
610
It's entirely possible that the feedback you get will suggest changes. Don't get discouraged: the whole point of contributing to an active open source project is to tap into the knowledge of the community. If people are encouraging you to tweak your code, then it's worth making the tweaks and resubmitting. If the feedback is that your code doesn't belong in the core, you might still think about releasing it as a gem.
611
611
612
-
#### Squashing commits
612
+
#### Squashing Commits
613
613
614
614
One of the things that we may ask you to do is to "squash your commits", which
615
615
will combine all of your commits into a single commit. We prefer pull requests
Copy file name to clipboardExpand all lines: guides/source/debugging_rails_applications.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -956,7 +956,7 @@ For further information on how to install Valgrind and use with Ruby, refer to
956
956
[Valgrind and Ruby](https://blog.evanweaver.com/2008/02/05/valgrind-and-ruby/)
957
957
by Evan Weaver.
958
958
959
-
### Find a memory leak
959
+
### Find a Memory Leak
960
960
There is an excellent article about detecting and fixing memory leaks at Derailed, [which you can read here](https://github.com/schneems/derailed_benchmarks#is-my-app-leaking-memory).
Copy file name to clipboardExpand all lines: guides/source/i18n.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -537,7 +537,7 @@ So that would give you:
537
537
538
538
TIP: Right now you might need to add some more date/time formats in order to make the I18n backend work as expected (at least for the 'pirate' locale). Of course, there's a great chance that somebody already did all the work by **translating Rails' defaults for your locale**. See the [rails-i18n repository at GitHub](https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale) for an archive of various locale files. When you put such file(s) in `config/locales/` directory, they will automatically be ready for use.
539
539
540
-
### Inflection Rules For Other Locales
540
+
### Inflection Rules for Other Locales
541
541
542
542
Rails allows you to define inflection rules (such as rules for singularization and pluralization) for locales other than English. In `config/initializers/inflections.rb`, you can define these rules for multiple locales. The initializer contains a default example for specifying additional rules for English; follow that format for other locales as you see fit.
Routing concerns allow you to declare common routes that can be reused inside other resources and routes. To define a concern:
411
411
@@ -448,7 +448,7 @@ namespace :articles do
448
448
end
449
449
```
450
450
451
-
### Creating Paths and URLs From Objects
451
+
### Creating Paths and URLs from Objects
452
452
453
453
In addition to using the routing helpers, Rails can also create paths and URLs from an array of parameters. For example, suppose you have this set of routes:
454
454
@@ -868,15 +868,15 @@ end
868
868
root to:"home#index"
869
869
```
870
870
871
-
### Unicode character routes
871
+
### Unicode Character Routes
872
872
873
873
You can specify unicode character routes directly. For example:
874
874
875
875
```ruby
876
876
get 'こんにちは', to:'welcome#index'
877
877
```
878
878
879
-
### Direct routes
879
+
### Direct Routes
880
880
881
881
You can create custom URL helpers directly. For example:
Copy file name to clipboardExpand all lines: guides/source/security.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1171,7 +1171,7 @@ Environmental Security
1171
1171
1172
1172
It is beyond the scope of this guide to inform you on how to secure your application code and environments. However, please secure your database configuration, e.g. `config/database.yml`, master key for `credentials.yml`, and other unencrypted secrets. You may want to further restrict access, using environment-specific versions of these files and any others that may contain sensitive information.
1173
1173
1174
-
### Custom credentials
1174
+
### Custom Credentials
1175
1175
1176
1176
Rails stores secrets in `config/credentials.yml.enc`, which is encrypted and hence cannot be edited directly. Rails uses `config/master.key` or alternatively looks for environment variable `ENV["RAILS_MASTER_KEY"]` to encrypt the credentials file. The credentials file can be stored in version control, as long as master key is kept safe.
To see how an error gets reported, here's a test containing an error:
230
230
@@ -470,7 +470,7 @@ Parallel testing allows you to parallelize your test suite. While forking proces
470
470
default method, threading is supported as well. Running tests in parallel reduces the time it
471
471
takes your entire test suite to run.
472
472
473
-
### Parallel testing with processes
473
+
### Parallel Testing with Processes
474
474
475
475
The default parallelization method is to fork processes using Ruby's DRb system. The processes
476
476
are forked based on the number of workers provided. The default number is the actual core count
@@ -522,7 +522,7 @@ end
522
522
523
523
These methods are not needed or available when using parallel testing with threads.
524
524
525
-
### Parallel testing with threads
525
+
### Parallel Testing with Threads
526
526
527
527
If you prefer using threads or are using JRuby, a threaded parallelization option is provided. The threaded
528
528
parallelizer is backed by Minitest's `Parallel::Executor`.
@@ -574,7 +574,7 @@ For good tests, you'll need to give some thought to setting up test data.
574
574
In Rails, you can handle this by defining and customizing fixtures.
575
575
You can find comprehensive documentation in the [Fixtures API documentation](https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html).
576
576
577
-
#### What Are Fixtures?
577
+
#### What are Fixtures?
578
578
579
579
_Fixtures_ is a fancy word for sample data. Fixtures allow you to populate your testing database with predefined data before your tests run. Fixtures are database independent and written in YAML. There is one file per model.
580
580
@@ -787,7 +787,7 @@ Rails.
787
787
The `take_screenshot` helper method can be included anywhere in your tests to
788
788
take a screenshot of the browser.
789
789
790
-
### Implementing a system test
790
+
### Implementing a System Test
791
791
792
792
Now we're going to add a system test to our blog application. We'll demonstrate
793
793
writing a system test by visiting the index page and creating a new blog article.
@@ -832,7 +832,7 @@ rails test:system
832
832
NOTE: By default, running `rails test` won't run your system tests.
833
833
Make sure to run `rails test:system` to actually run them.
834
834
835
-
#### Creating articles system test
835
+
#### Creating Articles System Test
836
836
837
837
Now let's test the flow for creating a new article in our blog.
838
838
@@ -1710,7 +1710,7 @@ your jobs are performed inline. It will also ensure that all previously performe
1710
1710
and enqueued jobs are cleared before any test run so you can safely assume that
1711
1711
no jobs have already been executed in the scope of each test.
1712
1712
1713
-
### Custom Assertions And Testing Jobs Inside Other Components
1713
+
### Custom Assertions and Testing Jobs inside Other Components
1714
1714
1715
1715
Active Job ships with a bunch of custom assertions that can be used to lessen the verbosity of tests. For a full list of available assertions, see the API documentation for [`ActiveJob::TestHelper`](https://api.rubyonrails.org/classes/ActiveJob/TestHelper.html).
0 commit comments