Add tmp dir in actionview/test/

Missing tmp directory will cause the test to fail on JRuby. will commit
adds tmp directory & 22 TemplateDigestorTests which were failing before
are now green.

Further Discussion on this can be seen at #11743
Fix: documentation for ActiveModel::Errors
Merge pull request #11757 from ryog/fix_document_active_model_errors

Fix: documentation for ActiveModel::Errors [ci skip]
Added data for permit array into scalar value
Merge pull request #11760 from rahul100885/master

Added data for permit array into scalar value

[ci skip]
getting started guide: pass the resource to the URL helper [ci skip]

Passing the actual ID is not idiomatic.
migrations guide: fix and edits [ci skip]
Free result_metadata directly instead of freeing 2nd, redundant call.

`result_metadata` returns a new object each time it is called, so calling `result_metadata.free` is essentially a noop.  Instead call `free` directly on the metadata when we're done with it.
Removed confusing statements about routes in getting started guide [ci skip]

- routes for CRUD already exists as `resources :posts` is in
  `config/routes.rb`
- So we don't have to add any new route in the `config/routes.rb`
- As per #11644, the adding of routes which are already there confuses user, so here its
  changed to referring output of `rake routes`
Create sqlite3 directory if not present

If the `db/` directory is not present on a remote machine it will blow up in unexpected ways with error messages that do not indicate there is a missing directory:

```
SQLite3::CantOpenException: unable to open database file
```

This PR checks to see if a directory exists for the sqlite3 file and if not creates it for you.

This PR is an alternative to #11692 as suggested by @josevalim
Merge pull request #11763 from schneems/schneems/create-sqlite3db

Create sqlite3 directory if not present
Merge pull request #11762 from peterkovacs/patch-2

Free result_metadata directly instead of freeing 2nd, redundant call.
Merge pull request #11666 from prathamesh-sonpatki/doc-fix

Removed confusing statement about adding route for show action in getting started guide [ci skip]
load fixtures from linked folders
Merge pull request #11767 from kassio/master-load-fixtures-from-linked-folder

Load fixtures from linked folders[master]
Use the right instrumentation name

The pattern is event.component

Closes #11769

Conflicts:
	railties/CHANGELOG.md
Remove deprecated branch on the scope method.

The deprecation message was removed on 50cbc03d18c5984347965a94027879623fc44cce but the code was not.
config[:database] should be a string

This change was breaking the Railties tests. See
https://travis-ci.org/rails/rails/jobs/9865969
Merge pull request #11743 from gaurish/tmp-magic

[Jruby] Make all tests in ActionView::TemplateDigestorTest green
Remove privatizing of Fixnum#/ from assert_distance_of_time_in_words

MRI reimplemented Date in C so it doesn't hit this division anymore
while JRuby still uses the old stdlib implementation of Date so
it will always hit this.

With this change the actionview date_helper_test.rb tests should pass on JRuby.