Fixed  documentation. [ci skip]
Merge pull request #13590 from kuldeepaggarwal/fix-date-helper-doc

provide correct example of `datetime_select` helper [ci skip]
Show full route constraints in error message

When an optimized helper fails to generate, show the full route constraints
in the error message. Previously it would only show the contraints that were
required as part of the path.

Fixes #13592
Unique the segment keys array for non-optimized url helpers

In Rails 3.2 you only needed pass an argument for dynamic segment once so
unique the segment keys array to match the number of args. Since the number
of args is less than required parts the non-optimized code path is selected.
This means to benefit from optimized url generation the arg needs to be
specified as many times as it appears in the path.

Fixes #12808

(cherry picked from commit 6b548830828e4e910de7854d21717c17303e089c)
Merge remote-tracking branch 'rails/4-0-stable' into v4.0.0_sqlserver
I don't believe that sqlserver respects internal encoding