1. 20 6月, 2017 1 次提交
  2. 29 10月, 2016 1 次提交
  3. 07 8月, 2016 2 次提交
  4. 15 3月, 2015 1 次提交
  5. 14 6月, 2014 1 次提交
  6. 03 8月, 2013 1 次提交
    • N
      Add "extname" option to javascript_include_tag · 0855f041
      Nathan Stitt 提交于
      ActionView::Helpers.asset_path is where the logic for
      javascript_include_tag resides.  It takes an extname option for
      specifying the extension or false to not append it.  This exposes that
      option to javascript_include_tag.
      
      Without the option files that didn't end with ".js" would get the
      extension appended to them.  This broke JST templates and other file
      types that should be interpreted as JavaScript but who's file extension
      isn't ".js"
      0855f041
  7. 20 6月, 2013 1 次提交
  8. 01 6月, 2013 1 次提交
  9. 28 1月, 2013 1 次提交
  10. 28 10月, 2012 1 次提交
  11. 09 9月, 2012 1 次提交
  12. 08 8月, 2012 1 次提交
    • R
      Deprecate `button_to_function` and `link_to_function` helpers. · 5d152874
      Rafael Mendonça França 提交于
      We recommend the use of Unobtrusive JavaScript instead. For example:
      
        link_to "Greeting", "#", :class => "nav_link"
      
        $(function() {
          $('.nav_link').click(function() {
            // Some complex code
      
            return false;
          });
        });
      
      or
      
        link_to "Greeting", '#', onclick: "alert('Hello world!'); return false", class: "nav_link"
      
      for simple cases.
      
      This reverts commit 3acdd652.
      5d152874
  13. 30 4月, 2012 1 次提交
  14. 05 4月, 2012 1 次提交
  15. 12 3月, 2012 1 次提交
  16. 14 2月, 2012 1 次提交
  17. 24 12月, 2011 1 次提交
  18. 23 8月, 2011 1 次提交
  19. 22 8月, 2011 1 次提交
  20. 10 6月, 2011 1 次提交
  21. 08 6月, 2011 1 次提交
  22. 13 4月, 2011 3 次提交
  23. 28 3月, 2011 1 次提交
  24. 29 9月, 2010 1 次提交
  25. 30 7月, 2010 1 次提交
  26. 26 7月, 2010 1 次提交
  27. 25 7月, 2010 1 次提交
  28. 17 3月, 2010 1 次提交
  29. 10 3月, 2010 1 次提交
  30. 08 3月, 2010 1 次提交
  31. 02 3月, 2010 1 次提交
  32. 31 1月, 2010 1 次提交
  33. 11 1月, 2010 1 次提交
  34. 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
  35. 22 5月, 2009 1 次提交
  36. 09 4月, 2009 1 次提交
  37. 08 3月, 2009 1 次提交