Use a type object for type casting behavior on SQLite3

Note: I'm not sure we actually need to be logging when this happens.
This code would be a fair bit cleaner if we didn't need to log it.
Improve token_and_options regex and test

add a test case to test the regex for the helper method raw_params
[ci skip] Changes some wording to better foreshadow what is coming up later.
This should prevent some anxiety readers may experience when the doc goes into something different than what it just explained. Also clarifies a statement about priority in engines and application environments

[ci skip] fixes double `the`

[ci skip] more clarifications

[ci skip] changes from tics to quotes
Remove symbolized_path_parameters.

This pull request is a continuation of https://github.com/rails/rails/commit/925bd975 and https://github.com/rails/rails/commit/8d8ebe3d.
Add `:all` argument to `count` in `reset_counters`

Prior to this fix, if an association had a scope with a `select`,
calls to `reset_counters` would generate invalid SQL and throw:

ActiveRecord::StatementInvalid: [$DB_ADAPTER]: wrong number of
arguments to function COUNT()

References #10710, #13648
Merge pull request #15941 from variousred/docrails-changes

[ci skip] Changes some wording to better foreshadow what is coming up later
Use the type object for type casting HStore columns
Do not rely on the column type when quoting infinity
Merge pull request #16034 from sgrif/sg-hstore-type-object

Use the type object for type casting HStore columns
Merge pull request #16036 from sgrif/sg-datetime-infinity

Do not rely on the column type when quoting infinity
Fix guide. sample code syntax error.[ci skip]
Merge pull request #16038 from tbpgr/fix_guide_active_record_validations

Fix guide. sample code syntax error.[ci skip]
Remove unneccessary special case for money in quoting
Add arel to the controller template
[ci skip] /javascript/ -> JavaScript - cover whole app
:fire: these are lambdas now [ci skip]

This has changed since around 2b1500d6
remove bundler magic
Display notice in index.html pages in scaffolded generated views

As we are setting notice in destroy action we should display that

For more information see https://github.com/rails/rails/pull/14044
And https://github.com/rails/jbuilder/pull/191

closes #14044
Merge pull request #16048 from arunagw/aa-added-notice-index-page

Display notice in index.html pages in scaffolded generated views
After find-via-reload, the record is not new