* Merge `:action` from routing scope and assign endpoint if both `:controller` and `:action` are present. The endpoint assignment only occurs if there is no `:to` present in the options hash so should only affect routes using the shorthand syntax (i.e. endpoint is inferred from the path). Fixes #9856 *Yves Senn*, *Andrew White* * ActionView extracted from ActionPack *Piotr Sarnacki*, *Łukasz Strzałkowski* * Fix removing trailing slash for mounted apps #3215 *Piotr Sarnacki* Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/actionpack/CHANGELOG.md) for previous changes.