1. 28 5月, 2016 1 次提交
  2. 21 5月, 2016 1 次提交
  3. 31 3月, 2016 1 次提交
  4. 15 3月, 2016 1 次提交
  5. 20 1月, 2016 1 次提交
  6. 12 1月, 2016 1 次提交
  7. 18 12月, 2015 1 次提交
  8. 17 12月, 2015 1 次提交
    • D
      Add `redirect_back` for safer referrer redirects · 13fd5586
      Derek Prior 提交于
      `redirect_to :back` is a somewhat common pattern in Rails apps, but it
      is not completely safe. There are a number of circumstances where HTTP
      referrer information is not available on the request. This happens often
      with bot traffic and occasionally to user traffic depending on browser
      security settings.
      
      When there is no referrer available on the request, `redirect_to :back`
      will raise `ActionController::RedirectBackError`, usually resulting in
      an application error.
      
      `redirect_back` takes a required `fallback_location` keyword argument
      that specifies the redirect when the referrer information is not
      available.  This prevents 500 errors caused by
      `ActionController::RedirectBackError`.
      13fd5586
  9. 18 9月, 2015 1 次提交
  10. 11 9月, 2015 1 次提交
  11. 02 9月, 2015 1 次提交
  12. 30 8月, 2015 1 次提交
  13. 23 8月, 2015 1 次提交
  14. 28 6月, 2015 1 次提交
  15. 16 6月, 2015 1 次提交
  16. 05 5月, 2015 1 次提交
  17. 10 4月, 2015 2 次提交
  18. 12 3月, 2015 1 次提交
  19. 13 2月, 2015 1 次提交
  20. 14 1月, 2015 1 次提交
  21. 27 12月, 2014 1 次提交
  22. 24 12月, 2014 1 次提交
  23. 15 12月, 2014 1 次提交
  24. 29 11月, 2014 1 次提交
    • Y
      Remove custom errors page section from the guides · cbcec99f
      Yuki Nishijima 提交于
      This pattern is too problematic and introduces a lot of edge cases:
      
        * On 4.2, the issue https://github.com/rails/rails/issues/15124 is
          back again.
        * needs to define each action for each http status otherwise the
          router raises ActionController::RoutingError (No route matches).
        * If the router has `match "/*username",...` and some action is
          missing, Rails will pick up the "match" and try to do its job.
        * encourages people to copy & paste programming. Not DRY.
      
      [ci skip]
      cbcec99f
  25. 25 10月, 2014 1 次提交
  26. 17 10月, 2014 1 次提交
  27. 07 9月, 2014 1 次提交
  28. 20 6月, 2014 3 次提交
  29. 19 6月, 2014 1 次提交
  30. 03 6月, 2014 1 次提交
  31. 19 4月, 2014 1 次提交
  32. 13 4月, 2014 2 次提交
  33. 20 3月, 2014 1 次提交
  34. 28 2月, 2014 1 次提交
  35. 19 2月, 2014 1 次提交
  36. 11 2月, 2014 1 次提交