1. 29 9月, 2013 1 次提交
  2. 25 9月, 2013 2 次提交
  3. 22 9月, 2013 1 次提交
  4. 19 9月, 2013 3 次提交
    • D
      Fix incorrect assert_redirected_to failure message · 1dacfbab
      Derek Prior 提交于
      In some instances, `assert_redirected_to` assertion was returning an
      incorrect and misleading failure message when the assertion failed.
      This was due to a disconnect in how the assertion computes the redirect
      string for the failure message and how `redirect_to` computes the
      string that is actually used for redirection.
      
      I made the `_compute_redirect_to_loaction` method used by `redirect_to`
      public and call that from the method `assert_redirect_to` uses to
      calculate the URL.
      
      The reveals a new test failure due to the regex used by
      `_compute_redirect_to_location` allow `_` in the URL scheme.
      1dacfbab
    • K
      Remove 1.8 compatible code · f76340e4
      kennyj 提交于
      f76340e4
    • K
      0cc65081
  5. 13 9月, 2013 3 次提交
  6. 11 9月, 2013 1 次提交
  7. 09 9月, 2013 2 次提交
  8. 01 9月, 2013 1 次提交
  9. 31 8月, 2013 1 次提交
    • E
      Update mapper documenation for match helper [ci skip] · 374bda72
      Earl St Sauver 提交于
      This piece of documentation is out of date.
      The use of match without any via option is prevented, now
      the HTTP verbs have to be explicitly set. If they're not set then
      the error message in normalize_conditions! (around line 186) is
      shown.
      374bda72
  10. 28 8月, 2013 1 次提交
  11. 23 8月, 2013 1 次提交
  12. 21 8月, 2013 1 次提交
  13. 20 8月, 2013 2 次提交
  14. 18 8月, 2013 1 次提交
  15. 16 8月, 2013 1 次提交
  16. 15 8月, 2013 1 次提交
  17. 04 8月, 2013 1 次提交
  18. 26 7月, 2013 1 次提交
  19. 25 7月, 2013 1 次提交
  20. 22 7月, 2013 1 次提交
    • A
      Clear named routes when routes.rb is reloaded · e5275f9b
      Andrew White 提交于
      Fix an issue where Journey was failing to clear the named routes hash when the
      routes were reloaded and since it doesn't overwrite existing routes then if a
      route changed but wasn't renamed it kept the old definition. This was being
      masked by the optimised url helpers so it only became apparent when passing an
      options hash to the url helper.
      e5275f9b
  21. 17 7月, 2013 2 次提交
    • A
      Refactor to reduce number of loops · 1a58ac60
      Andrew White 提交于
      Only build the missing_keys array once we have detected that there
      actually are missing keys by moving the check to be part of the block
      that performs the path substitution.
      1a58ac60
    • A
      Fix failing test missed for the past year :( · 74722d66
      Andrew White 提交于
      When optimized path helpers were re-introduced in d7014bc7 the test added
      in a328f2ff broke but no-one noticed because it wasn't being run by the
      test suite.
      
      Fix the test by checking for nil values or empty strings after the args
      have been parameterized.
      74722d66
  22. 16 7月, 2013 1 次提交
    • A
      Skip Rack applications and redirects when generating urls · 1555a180
      Andrew White 提交于
      When generating an unnamed url (i.e. using `url_for` with an options
      hash) we should skip anything other than standard Rails routes otherwise
      it will match the first mounted application or redirect and generate a
      url with query parameters rather than raising an error if the options
      hash doesn't match any defined routes.
      
      Fixes #8018
      1555a180
  23. 08 7月, 2013 2 次提交
  24. 05 7月, 2013 1 次提交
  25. 04 7月, 2013 2 次提交
  26. 03 7月, 2013 1 次提交
  27. 30 6月, 2013 1 次提交
  28. 29 6月, 2013 1 次提交
  29. 25 6月, 2013 1 次提交
    • A
      Fix shorthand routes where controller and action are in the scope · 37b4276d
      Andrew White 提交于
      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 the path).
      
      Fixes #9856
      37b4276d
  30. 24 6月, 2013 1 次提交