1. 06 1月, 2012 1 次提交
  2. 10 6月, 2011 1 次提交
  3. 13 4月, 2011 1 次提交
  4. 10 10月, 2010 1 次提交
  5. 04 3月, 2010 1 次提交
  6. 20 9月, 2009 1 次提交
  7. 16 8月, 2009 1 次提交
    • Y
      Got tests to pass with some more changes. · 1310231c
      Yehuda Katz 提交于
        * request.formats is much simpler now
          * For XHRs or Accept headers with a single item, we use the Accept header
          * For other requests, we use params[:format] or fallback to HTML
          * This is primarily to work around the fact that browsers provide completely
            broken Accept headers, so we have to whitelist the few cases we can
            specifically isolate and treat other requests as coming from the browser
          * For APIs, we can support single-item Accept headers, which disambiguates
            from the browsers
        * Requests to an action that only has an XML template from the browser will
          no longer find the template. This worked previously because most browsers
          provide a catch-all */*, but this was mostly accidental behavior. If you
          want to serve XML, either use the :xml format in links, or explicitly
          specify the XML template: render "template.xml".
      1310231c
  8. 16 6月, 2009 1 次提交
  9. 22 5月, 2009 1 次提交
  10. 02 5月, 2009 1 次提交
  11. 09 4月, 2009 1 次提交
  12. 09 1月, 2009 1 次提交
  13. 08 1月, 2009 1 次提交
  14. 22 8月, 2008 1 次提交
  15. 08 8月, 2008 1 次提交
  16. 13 7月, 2008 1 次提交
  17. 10 7月, 2008 1 次提交
  18. 07 7月, 2008 1 次提交
    • M
      Disable the Accept header by default · 2f4aaed7
      Michael Koziarski 提交于
      The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too.  You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set:
      
      config.action_controller.use_accept_header = true
      
      A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present.  This lets ajax pages still use format.js despite there being no params[:format]
      2f4aaed7
  19. 26 6月, 2008 1 次提交
  20. 05 1月, 2008 1 次提交
  21. 05 2月, 2007 1 次提交
  22. 19 9月, 2006 1 次提交
  23. 18 9月, 2006 2 次提交